]> git.ipfire.org Git - ipfire-2.x.git/blame - src/initscripts/packages/pmacct
Merge branch 'next'
[ipfire-2.x.git] / src / initscripts / packages / pmacct
CommitLineData
7300386b
AB
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
9case "$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 ;;
30esac
31
32# End $rc_base/init.d/pmacct
33