mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 00:12:58 +02:00
vnstat: Add restart command.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
7ad653cc09
commit
d2738c4c3c
@@ -21,7 +21,11 @@ case "$1" in
|
||||
stop)
|
||||
umount_ramdisk "${VNSTATLOG}"
|
||||
;;
|
||||
|
||||
restart)
|
||||
${0} stop
|
||||
sleep 1
|
||||
${0} start
|
||||
;;
|
||||
backup)
|
||||
# Backup all data if ramdisk is used
|
||||
if mountpoint "${RRDLOG}" &>/dev/null; then
|
||||
@@ -30,7 +34,7 @@ case "$1" in
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|backup}"
|
||||
echo "Usage: $0 {start|stop|restart|backup}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user