|
Line
Link Here
|
| 0 |
-- pmacctd 2008-08-06 06:35:23.000000000 +0000 |
0 |
++ pmacctd.new 2008-08-06 06:34:52.000000000 +0000 |
|
Lines 7-13
Link Here
|
| 7 |
need net |
7 |
need net |
| 8 |
} |
8 |
} |
| 9 |
chekconfig() { |
9 |
checkconfig() { |
| 10 |
if [ ! -e /etc/pmacctd.conf ] ; then |
10 |
if [ ! -e /etc/pmacctd.conf ] ; then |
| 11 |
eerror "You need an /etc/pmacctd.conf file to run pmacctd" |
11 |
eerror "You need an /etc/pmacctd.conf file to run pmacctd" |
| 12 |
return 1 |
12 |
return 1 |
|
Lines 15-30
Link Here
|
| 15 |
} |
15 |
} |
| 16 |
start() { |
16 |
start() { |
| 17 |
chekconfig || return 1 |
17 |
checkconfig || return 1 |
| 18 |
ebegin "Starting pmacctd" |
18 |
ebegin "Starting pmacctd" |
| 19 |
start-stop-daemon --start --exec /usr/sbin/pmacctd \ |
19 |
start-stop-daemon --start --pidfile /var/run/pmacctd.pid --exec /usr/sbin/pmacctd \ |
| 20 |
-- -D -f /etc/pmacctd.conf ${OPTS} |
20 |
-- -D -f /etc/pmacctd.conf -F /var/run/pmacctd.pid ${OPTS} |
| 21 |
eend $? |
21 |
eend $? |
| 22 |
} |
22 |
} |
| 23 |
stop() { |
23 |
stop() { |
| 24 |
ebegin "Stopping pmacctd" |
24 |
ebegin "Stopping pmacctd" |
| 25 |
start-stop-daemon --stop --exec /usr/sbin/pmacctd |
25 |
start-stop-daemon --stop --pidfile /var/run/pmacctd.pid --exec /usr/sbin/pmacctd |
| 26 |
eend $? |
26 |
eend $? |
| 27 |
} |
27 |
} |