9 stat_busy
"Starting Icecream Daemon"
11 if test -n "$ICECREAM_NETNAME"; then
12 netname
="-n $ICECREAM_NETNAME"
15 if test -n "$ICECREAM_LOG_FILE"; then
16 touch $ICECREAM_LOG_FILE
17 logfile
="-l $ICECREAM_LOG_FILE"
20 if test -n "$ICECREAM_NICE_LEVEL"; then
21 nice
="--nice $ICECREAM_NICE_LEVEL"
24 if test -n "$ICECREAM_SCHEDULER_HOST"; then
25 scheduler
="-s $ICECREAM_SCHEDULER_HOST"
28 if test "$ICECREAM_ALLOW_REMOTE" = "no" 2> /dev
/null
; then
29 noremote
="--no-remote"
32 if test -n "$ICECREAM_MAX_JOBS"; then
33 if test "$ICECREAM_MAX_JOBS" -eq 0 2> /dev
/null
; then
35 noremote
="--no-remote"
37 maxjobs
="-m $ICECREAM_MAX_JOBS"
40 /opt
/icecream
/sbin
/iceccd
-d $logfile $nice $netname -b "$ICECREAM_BASEDIR" $maxjobs $noremote &>/dev
/null
49 stat_busy
"Stopping Icecream Daemon"
50 killall
/opt
/icecream
/sbin
/iceccd
> /dev
/null
2>&1 || true
64 echo "usage: $0 {start|stop|restart}"