~ubuntu-branches/ubuntu/precise/icecc/precise

« back to all changes in this revision

Viewing changes to debian/icecc.init

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2011-09-17 16:26:59 UTC
  • mfrom: (4.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110917162659-j6d9ejw9r9sk5w8t
Tags: 0.9.7-4
Fix typo: ICECC_ALLOW_REMOTE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        if test -n "$ICECC_BASEDIR"; then
46
46
                basedir="-b $ICECC_BASEDIR"
47
47
        fi
 
48
        noremote=
 
49
        if test "$ICECC_ALLOW_REMOTE" = "no"; then
 
50
                noremote="--no-remote"
 
51
        fi
48
52
        maxjobs=
49
53
        if test -n "$ICECC_MAX_JOBS"; then
50
 
                maxjobs="-m $ICECC_MAX_JOBS"
 
54
                if test "$ICECC_MAX_JOBS" -eq 0; then
 
55
                        maxjobs="-m 1"
 
56
                        noremote="--no-remote"
 
57
                else
 
58
                        maxjobs="-m $ICECC_MAX_JOBS"
 
59
                fi
51
60
        fi
52
61
 
53
62
        start-stop-daemon --start --quiet --exec $DAEMON -- \
54
 
        -d $logfile $nice $scheduler $netname -u icecc $basedir $maxjobs
 
63
        -d $logfile $nice $scheduler $netname -u icecc $basedir $maxjobs $noremote
55
64
}
56
65
 
57
66
stop_icecc_daemon() {