mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +02:00
vnstat 2.6: New initscript
Added the new 'vnstatd' daemon to 'start' and 'stop' section. 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
29f35b79c7
commit
5a5de3f026
@@ -17,15 +17,28 @@ case "$1" in
|
||||
mount_ramdisk "${VNSTATLOG}"
|
||||
evaluate_retval
|
||||
fi
|
||||
|
||||
boot_mesg "Starting vnstatd..."
|
||||
loadproc /usr/sbin/vnstatd -d --alwaysadd
|
||||
sleep 2
|
||||
evaluate_retval
|
||||
;;
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping vnstatd..."
|
||||
killproc /usr/sbin/vnstatd
|
||||
sleep 2
|
||||
evaluate_retval
|
||||
|
||||
umount_ramdisk "${VNSTATLOG}"
|
||||
;;
|
||||
|
||||
restart)
|
||||
${0} stop
|
||||
sleep 1
|
||||
${0} start
|
||||
;;
|
||||
|
||||
backup)
|
||||
# Backup all data if ramdisk is used
|
||||
if mountpoint "${RRDLOG}" &>/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user