Gentoo Archives: gentoo-commits

From: "Alexys Jacob (ultrabug)" <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/keepalived/files: keepalived.init
Date: Tue, 05 Mar 2013 13:40:29
Message-Id: 20130305134025.0B06D2171E@flycatcher.gentoo.org
1 ultrabug 13/03/05 13:40:24
2
3 Modified: keepalived.init
4 Log:
5 Add back the reload functionality, revbump
6
7 (Portage version: 2.1.11.54/cvs/Linux x86_64, signed Manifest commit with key B658FA13)
8
9 Revision Changes Path
10 1.3 sys-cluster/keepalived/files/keepalived.init
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/keepalived/files/keepalived.init?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/keepalived/files/keepalived.init?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/keepalived/files/keepalived.init?r1=1.2&r2=1.3
15
16 Index: keepalived.init
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/keepalived.init,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- keepalived.init 25 Sep 2012 18:19:32 -0000 1.2
23 +++ keepalived.init 5 Mar 2013 13:40:24 -0000 1.3
24 @@ -1,7 +1,7 @@
25 #!/sbin/runscript
26 -# Copyright 1999-2012 Gentoo Foundation
27 +# Copyright 1999-2013 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/keepalived.init,v 1.2 2012/09/25 18:19:32 idl0r Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/keepalived.init,v 1.3 2013/03/05 13:40:24 ultrabug Exp $
31
32 depend() {
33 use logger
34 @@ -13,8 +13,7 @@
35 command_args="${KEEPALIVED_OPTS}"
36 pidfile="/var/run/keepalived.pid"
37
38 -extra_commands="checkconfig"
39 -
40 +extra_commands="checkconfig reload"
41
42 checkconfig() {
43 # keepalived has a config check command, but it does not work while the daemon is running!
44 @@ -27,3 +26,9 @@
45 start_pre() {
46 checkconfig || return 1
47 }
48 +
49 +reload() {
50 + ebegin "Reloading keepalived.conf"
51 + start-stop-daemon --pidfile $pidfile --signal HUP
52 + eend $?
53 +}