mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
vnstat 2.6: Added status section for initscript
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
49d09728cc
commit
51044e048f
@@ -39,6 +39,10 @@ case "$1" in
|
||||
${0} start
|
||||
;;
|
||||
|
||||
status)
|
||||
statusproc /usr/sbin/vnstatd
|
||||
;;
|
||||
|
||||
backup)
|
||||
# Backup all data if ramdisk is used
|
||||
if mountpoint "${RRDLOG}" &>/dev/null; then
|
||||
@@ -47,7 +51,7 @@ case "$1" in
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|backup}"
|
||||
echo "Usage: $0 {start|stop|restart|status|backup}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user