summaryrefslogtreecommitdiffstats
path: root/daemonsbkg/daemonsbkg-0.1.3/rc.local.daemons
blob: b6b3f36d43a8a60b1e57d13370adf6f957193e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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