Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/buildbot/files: buildmaster.initd
Date: Mon, 30 Sep 2013 19:25:07
Message-Id: 20130930192502.6838D2004C@flycatcher.gentoo.org
1 hwoarang 13/09/30 19:25:02
2
3 Modified: buildmaster.initd
4 Log:
5 Add reload() function to the init script. Update live ebuild. Bug #486586
6
7 (Portage version: 2.2.6/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)
8
9 Revision Changes Path
10 1.4 dev-util/buildbot/files/buildmaster.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/buildbot/files/buildmaster.initd?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/buildbot/files/buildmaster.initd?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/buildbot/files/buildmaster.initd?r1=1.3&r2=1.4
15
16 Index: buildmaster.initd
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/buildbot/files/buildmaster.initd,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- buildmaster.initd 6 Feb 2013 18:15:35 -0000 1.3
23 +++ buildmaster.initd 30 Sep 2013 19:25:02 -0000 1.4
24 @@ -2,6 +2,8 @@
25 # Copyright 1999-2013 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27
28 +extra_started_commands="reload"
29 +
30 depend() {
31 need net
32 }
33 @@ -43,3 +45,10 @@
34 start-stop-daemon --stop --pidfile "${BASEDIR}/buildmaster.pid"
35 eend $?
36 }
37 +
38 +reload() {
39 + ebegin "Reconfiguring buildmaster in ${BASEDIR}"
40 + start-stop-daemon --signal HUP --pidfile \
41 + "${BASEDIR}"/buildmaster.pid
42 + eend $?
43 +}