1
0
Fork 0
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:
bdaylik 2024-03-25 14:16:08 +03:00 committed by GitHub
parent bb483535fa
commit 4be2308e8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}
}