~ubuntu-branches/ubuntu/raring/icecc/raring

« back to all changes in this revision

Viewing changes to debian/icecc.init

  • Committer: Package Import Robot
  • Author(s): Rodrigo Belem
  • Date: 2012-12-16 12:57:40 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20121216125740-rnwdduxnnvddrp8y
Tags: 0.9.8~git2012121601-0ubuntu1
* New git snapshot.
* Remove warnings from init script.
* Add libcap-ng-dev as build dependency.
* Update debian/icecc.conf to use defaults for iceccd log,

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                fi
60
60
        fi
61
61
 
62
 
        chown icecc:icecc -R /tmp/icecc-envs
63
 
        chown icecc:icecc -R $ICECC_BASEDIR
 
62
        if test -d "/tmp/icecc-envs"; then
 
63
                chown icecc:icecc -R /tmp/icecc-envs
 
64
        fi
 
65
 
 
66
        if test -d "$ICECC_BASEDIR"; then
 
67
                chown icecc:icecc -R $ICECC_BASEDIR
 
68
        fi
64
69
 
65
70
        start-stop-daemon --start --quiet \
66
 
                --pidfile /var/run/iceccd.pid \
 
71
                --pidfile /var/run/icecc/iceccd.pid \
67
72
                --make-pidfile \
68
73
                --exec $DAEMON \
69
 
                --chuid icecc --user icecc -- \
70
 
                -d $logfile $nice $scheduler $netname $basedir $maxjobs $noremote
 
74
                -- -d $logfile $nice $scheduler $netname $basedir $maxjobs $noremote
71
75
}
72
76
 
73
77
stop_icecc_daemon() {
79
83
                ICECC_SCHEDULER_LOG_FILE="/var/log/icecc/scheduler.log"
80
84
        fi
81
85
 
 
86
        LOG_DIR=`dirname $ICECC_SCHEDULER_LOG_FILE`
 
87
        mkdir -p $LOG_DIR
 
88
 
 
89
        if test -d $LOG_DIR; then
 
90
                chown icecc:icecc -R $LOG_DIR
 
91
                chmod 755 $LOG_DIR
 
92
        fi
 
93
 
82
94
        logfile="-l $ICECC_SCHEDULER_LOG_FILE"
83
 
        : > $ICECC_SCHEDULER_LOG_FILE
84
 
        chown icecc $ICECC_SCHEDULER_LOG_FILE
 
95
 
85
96
        start-stop-daemon --start --quiet --chuid icecc \
86
97
        --exec $SCHEDULER -- -d $logfile $netname
87
98
}