public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-cluster/keepalived/files: keepalived.init
@ 2012-09-22 14:17 Christian Ruppert (idl0r)
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Ruppert (idl0r) @ 2012-09-22 14:17 UTC (permalink / raw
  To: gentoo-commits

idl0r       12/09/22 14:17:34

  Added:                keepalived.init
  Log:
  Version bump, bug 435512. Improve init script and some cleanup/fixes of the ebuild.
  
  (Portage version: 2.1.11.9/cvs/Linux i686)

Revision  Changes    Path
1.1                  sys-cluster/keepalived/files/keepalived.init

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/keepalived/files/keepalived.init?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/keepalived/files/keepalived.init?rev=1.1&content-type=text/plain

Index: keepalived.init
===================================================================
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/keepalived.init,v 1.1 2012/09/22 14:17:34 idl0r Exp $

depend() {
	use logger
	# The interfaces do not actually need to exist to start, it handles them gracefully.
	use net
}

command="/usr/sbin/keepalived"
command_args="${opts}"
pidfile="/var/run/keepalived.pid"

extra_commands="checkconfig"


checkconfig() {
	# keepalived has a config check command, but it does not work while the daemon is running!
	if [ ! -e /etc/keepalived/keepalived.conf ] ; then
		eerror "You need an /etc/keepalived/keepalived.conf file to run keepalived"
		return 1
	fi
}

start_pre() {
	checkconfig || return 1
}





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-cluster/keepalived/files: keepalived.init
@ 2013-03-05 13:40 Alexys Jacob (ultrabug)
  0 siblings, 0 replies; 2+ messages in thread
From: Alexys Jacob (ultrabug) @ 2013-03-05 13:40 UTC (permalink / raw
  To: gentoo-commits

ultrabug    13/03/05 13:40:24

  Modified:             keepalived.init
  Log:
  Add back the reload functionality, revbump
  
  (Portage version: 2.1.11.54/cvs/Linux x86_64, signed Manifest commit with key B658FA13)

Revision  Changes    Path
1.3                  sys-cluster/keepalived/files/keepalived.init

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/keepalived/files/keepalived.init?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/keepalived/files/keepalived.init?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/keepalived/files/keepalived.init?r1=1.2&r2=1.3

Index: keepalived.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/keepalived.init,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- keepalived.init	25 Sep 2012 18:19:32 -0000	1.2
+++ keepalived.init	5 Mar 2013 13:40:24 -0000	1.3
@@ -1,7 +1,7 @@
 #!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/keepalived.init,v 1.2 2012/09/25 18:19:32 idl0r Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/keepalived.init,v 1.3 2013/03/05 13:40:24 ultrabug Exp $
 
 depend() {
 	use logger
@@ -13,8 +13,7 @@
 command_args="${KEEPALIVED_OPTS}"
 pidfile="/var/run/keepalived.pid"
 
-extra_commands="checkconfig"
-
+extra_commands="checkconfig reload"
 
 checkconfig() {
 	# keepalived has a config check command, but it does not work while the daemon is running!
@@ -27,3 +26,9 @@
 start_pre() {
 	checkconfig || return 1
 }
+
+reload() {
+	ebegin "Reloading keepalived.conf"
+	start-stop-daemon --pidfile $pidfile --signal HUP
+	eend $?
+}





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-05 13:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05 13:40 [gentoo-commits] gentoo-x86 commit in sys-cluster/keepalived/files: keepalived.init Alexys Jacob (ultrabug)
  -- strict thread matches above, loose matches on Subject: below --
2012-09-22 14:17 Christian Ruppert (idl0r)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox