summaryrefslogtreecommitdiffstats
path: root/daemonsbkg/daemonsbkg-0.1.3/daemonsbkg.patch
diff options
context:
space:
mode:
Diffstat (limited to 'daemonsbkg/daemonsbkg-0.1.3/daemonsbkg.patch')
-rw-r--r--daemonsbkg/daemonsbkg-0.1.3/daemonsbkg.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/daemonsbkg/daemonsbkg-0.1.3/daemonsbkg.patch b/daemonsbkg/daemonsbkg-0.1.3/daemonsbkg.patch
new file mode 100644
index 0000000..cc21536
--- /dev/null
+++ b/daemonsbkg/daemonsbkg-0.1.3/daemonsbkg.patch
@@ -0,0 +1,33 @@
+--- /etc/rc.local.shutdown 2008-09-18 22:21:39.000000000 +0200
++++ /etc/rc.local.shutdown.new 2008-10-19 13:55:32.000000000 +0200
+@@ -3,3 +3,16 @@
+ # /etc/rc.local.shutdown: Local shutdown script.
+ #
+
++. /etc/rc.conf
++. /etc/rc.d/functions
++
++if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
++ # Shutdown background daemons
++ let i=${#DAEMONSBKG[@]}
++ while [ $i -ge 0 ]; do
++ if [ "${DAEMONSBKG[$i]:0:1}" != '!' ]; then
++ ck_daemon ${DAEMONSBKG[$i]#@} || stop_daemon ${DAEMONSBKG[$i]#@}
++ fi
++ let i=i-1
++ done
++fi
+\ No newline at end of file
+
+--- /etc/rc.multi 2008-09-18 22:21:39.000000000 +0200
++++ /etc/rc.multi.new 2008-10-19 13:55:32.000000000 +0200
+@@ -20,6 +20,9 @@
+ fi
+ done
+
++# Start background daemons
++/etc/rc.local.daemons &
++
+ if [ -x /etc/rc.local ]; then
+ /etc/rc.local
+ fi