From: | "Matsuu Takuto (matsuu)" <matsuu@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-dns/mydns/files: mydns.confd mydns.initd |
Date: | Sun, 04 Dec 2011 02:17:43 |
Message-Id: | 20111204021725.9C2332004E@flycatcher.gentoo.org |
1 | matsuu 11/12/04 02:17:25 |
2 | |
3 | Added: mydns.confd mydns.initd |
4 | Log: |
5 | Version bumped, bug #389331. |
6 | |
7 | (Portage version: 2.1.10.29/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-dns/mydns/files/mydns.confd |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/files/mydns.confd?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/files/mydns.confd?rev=1.1&content-type=text/plain |
14 | |
15 | Index: mydns.confd |
16 | =================================================================== |
17 | MYDNS_CONFFILE="/etc/mydns.conf" |
18 | |
19 | #MYDNS_EXTRA_OPTS="--verbose" |
20 | MYDNS_EXTRA_OPTS="" |
21 | |
22 | |
23 | |
24 | 1.1 net-dns/mydns/files/mydns.initd |
25 | |
26 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/files/mydns.initd?rev=1.1&view=markup |
27 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/files/mydns.initd?rev=1.1&content-type=text/plain |
28 | |
29 | Index: mydns.initd |
30 | =================================================================== |
31 | #!/sbin/runscript |
32 | # Copyright 1999-2011 Gentoo Foundation |
33 | # Distributed under the terms of the GNU General Public License v2 |
34 | |
35 | MYDNS_CHECKCONF="/usr/bin/mydnscheck" |
36 | MYDNS_CONFFILE="${MYDNS_CONFFILE:-/etc/mydns.conf}" |
37 | |
38 | command="/usr/sbin/mydns" |
39 | command_args="--background --conf=${MYDNS_CONFFILE} ${MYDNS_EXTRA_OPTS}" |
40 | extra_commands="configtest" |
41 | extra_started_commands="reload" |
42 | pidfile="$(grep '^pidfile' ${MYDNS_CONFFILE} | sed -e 's/^pidfile\s*=\s*\([^# ]\+\?\)\s*\(#.*\)\?$/\1/')" |
43 | pidfile="${pidfile:-/var/run/mydns.pid}" |
44 | |
45 | depend() { |
46 | need net |
47 | use logger mysql postgresql |
48 | } |
49 | |
50 | checkconfig() { |
51 | "${MYDNS_CHECKCONF}" --conf="${MYDNS_CONFFILE}" |
52 | return $? |
53 | } |
54 | |
55 | configtest() { |
56 | ebegin "Checking ${SVCNAME} configuration" |
57 | checkconfig |
58 | eend $? |
59 | } |
60 | |
61 | reload() { |
62 | ebegin "Reloading ${SVCNAME}" |
63 | start-stop-daemon --signal HUP --pidfile "${pidfile}" |
64 | eend $? |
65 | } |