Gentoo Archives: gentoo-commits

From: "Aaron Swenson (titanofold)" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/ddclient/files: ddclient.initd-r4
Date: Thu, 30 Jan 2014 12:33:33
Message-Id: 20140130123330.0250E2004E@flycatcher.gentoo.org
1 titanofold 14/01/30 12:33:29
2
3 Added: ddclient.initd-r4
4 Log:
5 Fixed bug 499458: Use checkpath instead of find
6 Version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key D1BBFDA0)
9
10 Revision Changes Path
11 1.1 net-dns/ddclient/files/ddclient.initd-r4
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/ddclient/files/ddclient.initd-r4?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/ddclient/files/ddclient.initd-r4?rev=1.1&content-type=text/plain
15
16 Index: ddclient.initd-r4
17 ===================================================================
18 #!/sbin/runscript
19 # Copyright 1999-2014 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21 # $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/files/ddclient.initd-r4,v 1.1 2014/01/30 12:33:29 titanofold Exp $
22
23 PIDFILE="/run/ddclient/ddclient.pid"
24
25 depend() {
26 before cron
27 need net
28 use dns logger squid
29 }
30
31 checkconfig() {
32 checkpath -f -m 0600 -o ddclient:ddclient /etc/ddclient/ddclient.conf || return 1
33 checkpath -d -m 0700 -o ddclient:ddclient /run/ddclient || return 1
34 checkpath -d -m 0700 -o ddclient:ddclient /var/cache/ddclient || return 1
35 }
36
37 start() {
38 checkconfig || return 1
39
40 ebegin "Starting ${SVCNAME}"
41 start-stop-daemon --start \
42 --user ddclient \
43 --name ddclient \
44 --pidfile ${PIDFILE} \
45 --exec /usr/sbin/ddclient -- -pid=${PIDFILE}
46 eend $?
47 }
48
49 stop() {
50 ebegin "Stopping ${SVCNAME}"
51 start-stop-daemon --stop --signal USR1 --pidfile ${PIDFILE}
52 eend $?
53 }