Line
Link Here
|
0 |
-- vnstatd.initd |
0 |
++ vnstatd.initd |
Lines 3-9
Link Here
|
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/files/vnstatd.initd,v 1.4 2011/10/17 14:48:04 jer Exp $ |
4 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/files/vnstatd.initd,v 1.4 2011/10/17 14:48:04 jer Exp $ |
5 |
|
5 |
|
6 |
opts="reload" |
6 |
extra_started_commands="reload" |
7 |
|
7 |
|
8 |
depend() { |
8 |
depend() { |
9 |
use net |
9 |
use net |
Lines 31-42
Link Here
|
31 |
} |
31 |
} |
32 |
|
32 |
|
33 |
reload() { |
33 |
reload() { |
34 |
if [ ! -f ${VNSTATD_PIDFILE} ]; then |
|
|
35 |
eerror "Cannot reload configuration, vnstatd is not running" |
36 |
eend 1 |
37 |
return 1 |
38 |
fi |
39 |
|
40 |
ebegin "Reloading vnstatd configuration" |
34 |
ebegin "Reloading vnstatd configuration" |
41 |
kill -HUP $(< "${VNSTATD_PIDFILE}") &>/dev/null |
35 |
kill -HUP $(< "${VNSTATD_PIDFILE}") &>/dev/null |
42 |
eend $? |
36 |
eend $? |