]>
git.ipfire.org Git - people/mfischer/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
26 boot_mesg
"Stopping vnstatd..."
27 killproc
/usr
/sbin
/vnstatd
30 umount_ramdisk
"${VNSTATLOG}"
40 statusproc
/usr
/sbin
/vnstatd
44 # Backup all data if ramdisk is used
45 if mountpoint
"${RRDLOG}" &>/dev
/null
; then
51 echo "Usage: $0 {start|stop|restart|status|backup}"
56 # End $rc_base/init.d/vnstat