summaryrefslogtreecommitdiffstats
path: root/abs/core/initscripts/rc.shutdown.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-07-30 19:23:14 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-07-30 19:23:14 (GMT)
commitefe55b74c9eb96356fb9308a6648739652c450b2 (patch)
tree8edc8c65b644aa7c74d3cda07439d71b2e2505f8 /abs/core/initscripts/rc.shutdown.patch
parentf09cf5c7560e5448b0f0423ec513b15fb04ca336 (diff)
downloadlinhes_pkgbuild-efe55b74c9eb96356fb9308a6648739652c450b2.zip
linhes_pkgbuild-efe55b74c9eb96356fb9308a6648739652c450b2.tar.gz
linhes_pkgbuild-efe55b74c9eb96356fb9308a6648739652c450b2.tar.bz2
init scripts: 2011.06.5 with patches for LinHES
rc.multi- don't try to remove bootlogger if the pid file isn't present
Diffstat (limited to 'abs/core/initscripts/rc.shutdown.patch')
-rw-r--r--abs/core/initscripts/rc.shutdown.patch29
1 files changed, 17 insertions, 12 deletions
diff --git a/abs/core/initscripts/rc.shutdown.patch b/abs/core/initscripts/rc.shutdown.patch
index 329164d..973ff41 100644
--- a/abs/core/initscripts/rc.shutdown.patch
+++ b/abs/core/initscripts/rc.shutdown.patch
@@ -1,15 +1,20 @@
---- rc.shutdown.orig 2010-08-08 23:50:24.000000000 +0000
-+++ rc.shutdown 2010-08-08 23:51:37.000000000 +0000
-@@ -32,6 +32,12 @@
- fi
- done
+--- rc.shutdown.orig 2011-06-09 22:23:09.000000000 +0000
++++ rc.shutdown 2011-07-31 02:47:22.686835949 +0000
+@@ -51,6 +51,17 @@
fi
+
+ stat_busy "Unmounting Filesystems"
+#unmount network filesystems for runit
-+#if [ -e /var/services/netfs ]
-+#then
-+ /etc/rc.d/netfs stop
-+#fi
++INIT=`ps -p1 -o comm=`
++if [ x$INIT = xrunit ]
++then
++ if [ -e /var/services/netfs ]
++ then
++ /etc/rc.d/netfs stop
++ fi
++fi
+
- # Shutdown daemons in reverse order
- let i=${#DAEMONS[@]}-1
- while [ $i -ge 0 ]; do
++
+ if /bin/grep -q devtmpfs /proc/filesystems &>/dev/null; then
+ /bin/umount -a -r -t nosysfs,noproc,nodevtmpfs,nodevpts -O no_netdev
+ else