Added restart section in init.d script. Just stop/start doesn't work as child process...
authorPeter Volkov <pva@gentoo.org>
Mon, 5 Jun 2006 16:58:01 +0000 (16:58 +0000)
committerPeter Volkov <pva@gentoo.org>
Mon, 5 Jun 2006 16:58:01 +0000 (16:58 +0000)
Package-Manager: portage-2.0.54-r2

net-misc/ip-sentinel/ChangeLog
net-misc/ip-sentinel/Manifest
net-misc/ip-sentinel/files/ip-sentinel.init

index 849b7f44e9d90f3b1e9917f8b4f21bece59b1eb2..268fd8514f917df59451d85032bb64fd9856ab55 100644 (file)
@@ -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)
 
index 03998bc5f6a19920262441901cee5b9e53c2f5db..a02582cdee121fe426d26d606cba12228361f628 100644 (file)
@@ -1,7 +1,7 @@
-MD5 c5343814748b3b588814af10a74dc43b ChangeLog 426
+MD5 2f794be55d9cd011fa0e020a14aaca70 ChangeLog 626
 MD5 196e4c59b0c8b9af825b26b05c58f01a files/digest-ip-sentinel-0.12 69
 MD5 204bbb3a56048aff8085af335043e7f4 files/ip-sentinel.cfg 272
 MD5 264a00a7107a2ad3d6e4f3d6a939e742 files/ip-sentinel.conf.d 350
-MD5 2a1c4e6937c751e5761ad9c58eb7cd9b files/ip-sentinel.init 972
+MD5 f9c757d14ba3770f719a538f0008706b files/ip-sentinel.init 1163
 MD5 821589d73b4c8ec9059c95f285fdcd61 ip-sentinel-0.12.ebuild 2367
 MD5 627b588df7cff1f95032d83d410a6a7d metadata.xml 632
index dce64a188f2759bd8e4f9926117f088891bf1116..97147b255a548c4e14dacf9633b9b8d1b41ed500 100644 (file)
@@ -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
+}
+