From: | "Matsuu Takuto (matsuu)" <matsuu@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/puppet/files: puppetmaster.init puppet.init |
Date: | Tue, 09 Sep 2008 09:20:08 |
Message-Id: | E1KczOI-00078G-2F@stork.gentoo.org |
1 | matsuu 08/09/09 09:20:06 |
2 | |
3 | Modified: puppetmaster.init |
4 | Added: puppet.init |
5 | Log: |
6 | Fixed init.d issue, bug 237071. |
7 | (Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.3 app-admin/puppet/files/puppetmaster.init |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/files/puppetmaster.init?rev=1.3&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/files/puppetmaster.init?rev=1.3&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/files/puppetmaster.init?r1=1.2&r2=1.3 |
15 | |
16 | Index: puppetmaster.init |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/app-admin/puppet/files/puppetmaster.init,v |
19 | retrieving revision 1.2 |
20 | retrieving revision 1.3 |
21 | diff -u -r1.2 -r1.3 |
22 | --- puppetmaster.init 16 Jun 2008 06:42:46 -0000 1.2 |
23 | +++ puppetmaster.init 9 Sep 2008 09:20:05 -0000 1.3 |
24 | @@ -34,7 +34,7 @@ |
25 | [[ -n "${PUPPETMASTER_EXTRA_OPTS}" ]] && options="${options} ${PUPPETMASTER_EXTRA_OPTS}" |
26 | |
27 | ebegin "Starting puppetmaster" |
28 | - start-stop-daemon --start --quiet --exec /usr/bin/ruby /usr/bin/puppetmasterd \ |
29 | + start-stop-daemon --start --quiet --exec /usr/bin/puppetmasterd \ |
30 | -- ${options} |
31 | eend $? "Failed to start puppetmaster" |
32 | } |
33 | @@ -48,3 +48,4 @@ |
34 | rm -f ${PUPPETMASTER_PID_DIR}/puppetmasterd.pid |
35 | return ${ret} |
36 | } |
37 | + |
38 | |
39 | |
40 | |
41 | 1.1 app-admin/puppet/files/puppet.init |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/files/puppet.init?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/files/puppet.init?rev=1.1&content-type=text/plain |
45 | |
46 | Index: puppet.init |
47 | =================================================================== |
48 | #!/sbin/runscript |
49 | # Copyright 1999-2004 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/files/puppet.init,v 1.1 2008/09/09 09:20:05 matsuu Exp $ |
52 | |
53 | depend() { |
54 | need net |
55 | use dns logger |
56 | } |
57 | |
58 | checkconfig() { |
59 | if [[ ! -d "${PUPPET_PID_DIR}" ]] ; then |
60 | eerror "Please make sure PUPPET_PID_DIR is defined and points to a existing directory" |
61 | return 1 |
62 | fi |
63 | |
64 | return 0 |
65 | } |
66 | |
67 | start() { |
68 | checkconfig || return $? |
69 | |
70 | local options="" |
71 | [[ -n "${PUPPET_EXTRA_OPTS}" ]] && options="${options} ${PUPPET_EXTRA_OPTS}" |
72 | |
73 | ebegin "Starting puppet" |
74 | start-stop-daemon --start --quiet --exec /usr/bin/puppetd -- ${options} |
75 | eend $? "Failed to start puppet" |
76 | } |
77 | |
78 | stop() { |
79 | ebegin "Stopping puppet" |
80 | start-stop-daemon --stop --quiet --pidfile ${PUPPET_PID_DIR}/puppetd.pid |
81 | local ret=$? |
82 | eend ${ret} "Failed to stop puppet" |
83 | rm -f ${PUPPET_PID_DIR}/puppetd.pid |
84 | return ${ret} |
85 | } |