Gentoo Archives: gentoo-commits

From: "Lance Albertson (ramereth)" <ramereth@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/mcollective/files: mcollectived.initd
Date: Tue, 01 Mar 2011 02:18:43
Message-Id: 20110301021833.894EF2005C@flycatcher.gentoo.org
1 ramereth 11/03/01 02:18:33
2
3 Added: mcollectived.initd
4 Log:
5 Initial commit imported from my ramereth-overlay
6
7 (Portage version: 2.1.9.25/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-admin/mcollective/files/mcollectived.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/mcollective/files/mcollectived.initd?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/mcollective/files/mcollectived.initd?rev=1.1&content-type=text/plain
14
15 Index: mcollectived.initd
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2011 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/app-admin/mcollective/files/mcollectived.initd,v 1.1 2011/03/01 02:18:33 ramereth Exp $
21
22 mcollectived="/usr/sbin/mcollectived"
23 pidfile="/var/run/mcollectived"
24
25 depend() {
26 need net
27 }
28
29 start() {
30 ebegin "Starting mcollectived"
31 ${mcollectived} --pid=${pidfile} --config="/etc/mcollective/server.cfg"
32 eend $?
33 }
34
35 stop() {
36 ebegin "Stopping mcollectived"
37 kill `cat ${pidfile}`
38 eend $?
39 }
40
41 restart() {
42 svc_stop
43 sleep 2
44 svc_start
45 }