Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/puppet/files: puppet-0.25.init puppetmaster-0.25.init
Date: Fri, 04 Sep 2009 10:58:58
Message-Id: E1MjbJu-0004OK-On@stork.gentoo.org
1 matsuu 09/09/04 16:07:26
2
3 Added: puppet-0.25.init puppetmaster-0.25.init
4 Log:
5 Fixed init.d scripts for filepath issue.
6 (Portage version: 2.1.6.13/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 app-admin/puppet/files/puppet-0.25.init
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/files/puppet-0.25.init?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/files/puppet-0.25.init?rev=1.1&content-type=text/plain
13
14 Index: puppet-0.25.init
15 ===================================================================
16 #!/sbin/runscript
17 # Copyright 1999-2009 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19
20 depend() {
21 need localmount net
22 use dns logger puppetmaster netmount nfsmount
23 }
24
25 checkconfig() {
26 if [ ! -d "${PUPPET_PID_DIR}" ] ; then
27 eerror "Please make sure PUPPET_PID_DIR is defined and points to a existing directory"
28 return 1
29 fi
30
31 return 0
32 }
33
34 start() {
35 checkconfig || return $?
36
37 local options=""
38 [ -n "${PUPPET_EXTRA_OPTS}" ] && options="${options} ${PUPPET_EXTRA_OPTS}"
39
40 ebegin "Starting puppet"
41 start-stop-daemon --start --quiet \
42 --pidfile "${PUPPET_PID_DIR}/puppetd.pid" \
43 --exec /usr/sbin/puppetd -- ${options}
44 eend $? "Failed to start puppet"
45 }
46
47 stop() {
48 ebegin "Stopping puppet"
49 start-stop-daemon --stop --quiet \
50 --pidfile "${PUPPET_PID_DIR}/puppetd.pid"
51 local ret=$?
52 eend ${ret} "Failed to stop puppet"
53 rm -f "${PUPPET_PID_DIR}/puppetd.pid"
54 return ${ret}
55 }
56
57
58
59 1.1 app-admin/puppet/files/puppetmaster-0.25.init
60
61 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/files/puppetmaster-0.25.init?rev=1.1&view=markup
62 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/files/puppetmaster-0.25.init?rev=1.1&content-type=text/plain
63
64 Index: puppetmaster-0.25.init
65 ===================================================================
66 #!/sbin/runscript
67 # Copyright 1999-2009 Gentoo Foundation
68 # Distributed under the terms of the GNU General Public License v2
69
70 depend() {
71 need localmount net
72 use dns logger slapd netmount nfsmount
73 }
74
75 checkconfig() {
76 if [ ! -d "${PUPPETMASTER_PID_DIR}" ] ; then
77 eerror "Please make sure PUPPETMASTER_PID_DIR is defined and points to a existing directory"
78 return 1
79 fi
80
81 return 0
82 }
83
84 start() {
85 checkconfig || return $?
86
87 local options=""
88 [ -n "${PUPPETMASTER_EXTRA_OPTS}" ] && options="${options} ${PUPPETMASTER_EXTRA_OPTS}"
89
90 ebegin "Starting puppetmaster"
91 start-stop-daemon --start --quiet \
92 --pidfile "${PUPPETMASTER_PID_DIR}/puppetmasterd.pid" \
93 --exec /usr/sbin/puppetmasterd -- ${options}
94 eend $? "Failed to start puppetmaster"
95 }
96
97 stop() {
98 ebegin "Stopping puppetmaster"
99 start-stop-daemon --stop --quiet \
100 --pidfile "${PUPPETMASTER_PID_DIR}/puppetmasterd.pid"
101 local ret=$?
102 eend ${ret} "Failed to stop puppetmaster"
103 rm -f "${PUPPETMASTER_PID_DIR}/puppetmasterd.pid"
104 return ${ret}
105 }