Temporary workaround until
http://lists.gnu.org/archive/html/bug-hurd/2006-02/msg00081.html is
addressed.
---
debian/changelog | 5 +++++
debian/src/initscripts/etc/init.d/killprocs | 5 +++++
debian/src/initscripts/etc/init.d/sendsigs | 5 +++++
3 files changed, 15 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 50944ca..108c41a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -62,6 +62,11 @@ sysvinit (2.88dsf-42) UNRELEASED; urgency=low
simply does not apply to the Hurd system.
* killall5.c: Use sysconf(_SC_SYMLOOP_MAX) instead of MAXSYMLINKS.
Fixes build on Hurd.
+ * sendsigs: Disable script on Hurd. killall5 kills essential processes.
+ Temporary workaround until
+ http://lists.gnu.org/archive/html/bug-hurd/2006-02/msg00081.html
+ is addressed.
+ * killprocs: Likewise.
-- Roger Leigh <[email protected]> Sat, 04 May 2013 13:13:51 +0100
diff --git a/debian/src/initscripts/etc/init.d/killprocs
b/debian/src/initscripts/etc/init.d/killprocs
index 6cb5b91..7712e98 100755
--- a/debian/src/initscripts/etc/init.d/killprocs
+++ b/debian/src/initscripts/etc/init.d/killprocs
@@ -46,6 +46,11 @@ do_start () {
case "$1" in
start)
+ # Do not run killall5 on Hurd.
+ if [ "$(uname)" = GNU ]; then
+ exit 0
+ fi
+
do_start
;;
restart|reload|force-reload)
diff --git a/debian/src/initscripts/etc/init.d/sendsigs
b/debian/src/initscripts/etc/init.d/sendsigs
index 04bd03c..85047c6 100755
--- a/debian/src/initscripts/etc/init.d/sendsigs
+++ b/debian/src/initscripts/etc/init.d/sendsigs
@@ -115,6 +115,11 @@ case "$1" in
exit 3
;;
stop)
+ # Do not run killall5 on Hurd.
+ if [ "$(uname)" = GNU ]; then
+ exit 0
+ fi
+
do_stop
;;
*)
--
1.7.10.4