# 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)
-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
#!/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"
else
local_opts="--user ipsentinel --group ipsentinel -r /"
fi
- return 0
}
start() {
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
+}
+