]>
git.ipfire.org Git - people/ms/ipfire-2.x.git/blob - src/initscripts/system/vnstat
2 # Begin $rc_base/init.d/vnstat
7 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/main
/settings
)
9 if [ "$VNSTATLOG" = '' ]; then
10 VNSTATLOG
=/var
/log
/vnstat
16 boot_mesg
"Mounting vnstat ramdisk..."
17 mount_ramdisk
"${VNSTATLOG}"
21 boot_mesg
"Starting vnstatd..."
22 loadproc
/usr
/sbin
/vnstatd
-d --alwaysadd
28 boot_mesg
"Stopping vnstatd..."
29 killproc
/usr
/sbin
/vnstatd
33 umount_ramdisk
"${VNSTATLOG}"
43 # Backup all data if ramdisk is used
44 if mountpoint
"${RRDLOG}" &>/dev
/null
; then
50 echo "Usage: $0 {start|stop|restart|backup}"
55 # End $rc_base/init.d/vnstat