summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2006-06-05 16:58:01 +0000
committerPeter Volkov <pva@gentoo.org>2006-06-05 16:58:01 +0000
commit95832e65f58e1d36cf326516a13c7b98cb092c23 (patch)
treef79554c358b02771c09916b4c6c4d3c86317f916 /net-misc/ip-sentinel
parentVersion bump. (diff)
downloadgentoo-2-95832e65f58e1d36cf326516a13c7b98cb092c23.tar.gz
gentoo-2-95832e65f58e1d36cf326516a13c7b98cb092c23.tar.bz2
gentoo-2-95832e65f58e1d36cf326516a13c7b98cb092c23.zip
Added restart section in init.d script. Just stop/start doesn't work as child process occupies port for some time after stop.
(Portage version: 2.0.54-r2)
Diffstat (limited to 'net-misc/ip-sentinel')
-rw-r--r--net-misc/ip-sentinel/ChangeLog6
-rw-r--r--net-misc/ip-sentinel/files/ip-sentinel.init15
2 files changed, 18 insertions, 3 deletions
diff --git a/net-misc/ip-sentinel/ChangeLog b/net-misc/ip-sentinel/ChangeLog
index 849b7f44e9d9..268fd8514f91 100644
--- a/net-misc/ip-sentinel/ChangeLog
+++ b/net-misc/ip-sentinel/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/ip-sentinel
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ip-sentinel/ChangeLog,v 1.1 2006/01/15 22:16:59 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ip-sentinel/ChangeLog,v 1.2 2006/06/05 16:58:01 pva Exp $
+
+ 05 Jun 2006; Peter Volkov <pva@gentoo.org> files/ip-sentinel.init:
+ Added restart section in init.d script. Just stop/start doesn't work as
+ child process occupies port for some time after stop.
*ip-sentinel-0.12 (15 Jan 2006)
diff --git a/net-misc/ip-sentinel/files/ip-sentinel.init b/net-misc/ip-sentinel/files/ip-sentinel.init
index dce64a188f27..97147b255a54 100644
--- a/net-misc/ip-sentinel/files/ip-sentinel.init
+++ b/net-misc/ip-sentinel/files/ip-sentinel.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ip-sentinel/files/ip-sentinel.init,v 1.1 2006/01/15 22:16:59 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ip-sentinel/files/ip-sentinel.init,v 1.2 2006/06/05 16:58:01 pva Exp $
CFG_FILE="/etc/ip-sentinel.cfg"
@@ -20,7 +20,6 @@ checkconfig() {
else
local_opts="--user ipsentinel --group ipsentinel -r /"
fi
- return 0
}
start() {
@@ -37,3 +36,15 @@ stop() {
eend $? "Failed to stop ip-sentinel"
}
+restart () {
+ svc_stop
+ echo "Please, wait while child process quit."
+ while `ps aux | grep -v 'init.d' |grep [i]p-sentinel >/dev/null`
+ do
+ echo -n " . "
+ sleep 1
+ done
+ echo "[Done]"
+ svc_start
+}
+