From: Peter Volkov Date: Mon, 5 Jun 2006 16:58:01 +0000 (+0000) Subject: Added restart section in init.d script. Just stop/start doesn't work as child process... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0705b9221187c192e739bb2c255d701b74dc30ca;p=gentoo.git Added restart section in init.d script. Just stop/start doesn't work as child process occupies port for some time after stop. Package-Manager: portage-2.0.54-r2 --- 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 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/Manifest b/net-misc/ip-sentinel/Manifest index 03998bc5f6a1..a02582cdee12 100644 --- a/net-misc/ip-sentinel/Manifest +++ b/net-misc/ip-sentinel/Manifest @@ -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 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 +} +