summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-04-30 06:45:49 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2007-04-30 06:45:49 +0000
commit2f67db79583bce0336272400d614a74a1d0a8faf (patch)
tree1e0790f039d9da9b3fcf133e54013746dfff0d8f /sys-cluster
parentInitial commit, ebuild by Robin H. Johnson <robbat2@gentoo.org>. (diff)
downloadgentoo-2-2f67db79583bce0336272400d614a74a1d0a8faf.tar.gz
gentoo-2-2f67db79583bce0336272400d614a74a1d0a8faf.tar.bz2
gentoo-2-2f67db79583bce0336272400d614a74a1d0a8faf.zip
Make init.d baselayout2 safe.
(Portage version: 2.1.2.4)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/keepalived/ChangeLog5
-rw-r--r--sys-cluster/keepalived/files/init-keepalived9
2 files changed, 9 insertions, 5 deletions
diff --git a/sys-cluster/keepalived/ChangeLog b/sys-cluster/keepalived/ChangeLog
index 7b48e3fc4284..8bdb9925873f 100644
--- a/sys-cluster/keepalived/ChangeLog
+++ b/sys-cluster/keepalived/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-cluster/keepalived
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/ChangeLog,v 1.41 2007/04/28 17:47:31 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/ChangeLog,v 1.42 2007/04/30 06:45:49 robbat2 Exp $
+
+ 30 Apr 2007; Robin H. Johnson <robbat2@gentoo.org> files/init-keepalived:
+ Make init.d baselayout2 safe.
28 Apr 2007; Sven Wegener <swegener@gentoo.org> keepalived-1.1.11.ebuild,
keepalived-1.1.12.ebuild, keepalived-1.1.13.ebuild:
diff --git a/sys-cluster/keepalived/files/init-keepalived b/sys-cluster/keepalived/files/init-keepalived
index de6c3d2d264f..c7b34c3a260f 100644
--- a/sys-cluster/keepalived/files/init-keepalived
+++ b/sys-cluster/keepalived/files/init-keepalived
@@ -1,13 +1,15 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/init-keepalived,v 1.3 2004/07/15 00:55:17 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/init-keepalived,v 1.4 2007/04/30 06:45:49 robbat2 Exp $
depend() {
use logger
need net
}
+PIDFILE=/var/run/keepalived.pid
+
checkconfig() {
if [ ! -e /etc/keepalived/keepalived.conf ] ; then
eerror "You need an /etc/keepalived/keepalived.conf file to run keepalived"
@@ -18,13 +20,12 @@ checkconfig() {
start() {
checkconfig || return 1
ebegin "Starting Keepalived"
- start-stop-daemon --start --quiet --pidfile /var/run/keepalived.pid \
- --startas /usr/sbin/keepalived
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec /usr/sbin/keepalived
eend $?
}
stop() {
ebegin "Stopping Keepalived"
- start-stop-daemon --stop --quiet --pidfile /var/run/keepalived.pid
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE
eend $?
}