diff options
Diffstat (limited to 'daemonsbkg/daemonsbkg-0.1.3/rc.local.daemons')
-rwxr-xr-x | daemonsbkg/daemonsbkg-0.1.3/rc.local.daemons | 16 |
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 + |