]> git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/packages/pmacct
45d4c336a25a4af3a3a3be8813040631c680a74a
[ipfire-2.x.git] / src / initscripts / packages / pmacct
1 #!/bin/sh
2 # Begin $rc_base/init.d/pmacct
3
4 # Based on sysklogd script from LFS-3.1 and earlier.
5
6 . /etc/sysconfig/rc
7 . $rc_functions
8
9 case "$1" in
10 start)
11 boot_mesg "Starting the pmacctd daemon..."
12 loadproc /usr/sbin/pmacctd -f /etc/pmacct/pmacct.conf
13 ;;
14 stop)
15 boot_mesg "Stopping the pmacctd daemon..."
16 killproc /usr/sbin/pmacctd
17 ;;
18 restart)
19 ${0} stop
20 sleep 1
21 ${0} start
22 ;;
23 status)
24 statusproc /usr/sbin/pmacctd
25 ;;
26 *)
27 echo "Usage: $0 (start|stop|restart|status)"
28 exit 1
29 ;;
30 esac
31
32 # End $rc_base/init.d/pmacct
33