mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
update vnstat_backup service to start before and end after the vnstat service (#310)
Currently vnstat_backup service runs after vnstat runs and overwrites newly initialized database of vnstat causing it to crash and restart. Moving vnstat_backup service before vnstat lets it create the database before vnstat runs. This allows an error free operation.
This commit is contained in:
parent
bb483535fa
commit
4be2308e8b
1 changed files with 3 additions and 3 deletions
|
@ -6,8 +6,8 @@ EXTRA_HELP=<<EOF
|
|||
restore Restore vnstat database
|
||||
EOF
|
||||
|
||||
START=98
|
||||
STOP=10
|
||||
START=50
|
||||
STOP=60
|
||||
|
||||
vnstat_option() {
|
||||
sed -ne "s/^[[:space:]]*$1[[:space:]]*['\"]\([^'\"]*\)['\"].*/\1/p" /etc/vnstat.conf
|
||||
|
@ -60,4 +60,4 @@ backup() {
|
|||
|
||||
restore() {
|
||||
restore_database
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue