summaryrefslogtreecommitdiffstats
path: root/daemonsbkg/daemonsbkg-0.1.3/rc.local.daemons
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-02-28 14:36:14 +0100
committerFlorian Pritz <f-p@gmx.at>2009-02-28 14:36:14 +0100
commit3232f9d90114778cb8d38cc1bc8477435dc65259 (patch)
tree0eb9ffafbe853c84b9ad6b808d86a00d44668392 /daemonsbkg/daemonsbkg-0.1.3/rc.local.daemons
downloadaur-packages-3232f9d90114778cb8d38cc1bc8477435dc65259.tar.gz
aur-packages-3232f9d90114778cb8d38cc1bc8477435dc65259.tar.xz
initial commit
Diffstat (limited to 'daemonsbkg/daemonsbkg-0.1.3/rc.local.daemons')
-rwxr-xr-xdaemonsbkg/daemonsbkg-0.1.3/rc.local.daemons16
1 files changed, 16 insertions, 0 deletions
diff --git a/daemonsbkg/daemonsbkg-0.1.3/rc.local.daemons b/daemonsbkg/daemonsbkg-0.1.3/rc.local.daemons
new file mode 100755
index 0000000..b6b3f36
--- /dev/null
+++ b/daemonsbkg/daemonsbkg-0.1.3/rc.local.daemons
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# Start daemons
+for daemon in "${DAEMONSBKG[@]}"; do
+ if [ "$daemon" = "${daemon#!}" ]; then
+ if [ "$daemon" = "${daemon#@}" ]; then
+ start_daemonbkg $daemon 2>&1 >/dev/null
+ else
+ start_daemonbkg_bkgd ${daemon:1} 2>&1 >/dev/null
+ fi
+ fi
+done
+