Lines 3-8
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-dns/ddclient/files/ddclient.init,v 1.1 2005/04/01 22:20:38 seemant Exp $ |
4 |
# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/files/ddclient.init,v 1.1 2005/04/01 22:20:38 seemant Exp $ |
5 |
|
5 |
|
|
|
6 |
# This must match the pidfile specified in /etc/ddclient/ddclient.conf |
7 |
PIDFILE=/var/run/ddclient/ddclient.pid |
8 |
|
6 |
depend() { |
9 |
depend() { |
7 |
need net |
10 |
need net |
8 |
} |
11 |
} |
Lines 19-30
Link Here
|
19 |
start() { |
22 |
start() { |
20 |
checkconfig || return 1 |
23 |
checkconfig || return 1 |
21 |
ebegin "Starting DDClient" |
24 |
ebegin "Starting DDClient" |
22 |
start-stop-daemon --start --chuid ddclient --quiet --exec /usr/sbin/ddclient 2&>/dev/null |
25 |
start-stop-daemon --start \ |
|
|
26 |
--chuid ddclient \ |
27 |
--exec /usr/sbin/ddclient \ |
28 |
--pidfile $PIDFILE |
23 |
eend $? |
29 |
eend $? |
24 |
} |
30 |
} |
25 |
|
31 |
|
26 |
stop() { |
32 |
stop() { |
27 |
ebegin "Stopping DDClient" |
33 |
ebegin "Stopping DDClient" |
28 |
start-stop-daemon --stop --quiet --name ddclient |
34 |
start-stop-daemon --stop \ |
|
|
35 |
--signal USR1 \ |
36 |
--pidfile $PIDFILE |
29 |
eend $? |
37 |
eend $? |
30 |
} |
38 |
} |