~ubuntu-branches/ubuntu/natty/sbuild/natty-updates

« back to all changes in this revision

Viewing changes to debian/buildd.init

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2010-05-14 23:13:17 UTC
  • mfrom: (0.3.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20100514231317-09132vor1bgwk4nq
Tags: upstream-0.60.0
ImportĀ upstreamĀ versionĀ 0.60.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
start () {
51
51
    log_begin_msg "Starting $DESC: $NAME"
52
52
 
53
 
    start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" --chuid buildd:buildd --exec $DAEMON
 
53
    if [ -e /home/buildd/NO-DAEMON-PLEASE ]; then
 
54
        log_failure_msg "NO-DAEMON-PLEASE exists, not starting"
 
55
    else
 
56
        start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" --chuid buildd:buildd --exec $DAEMON
54
57
 
55
 
    log_end_msg $?
 
58
        log_end_msg $?
 
59
    fi
56
60
}
57
61
 
58
62
stop () {
80
84
restart () {
81
85
    log_begin_msg "Restarting $DESC: $NAME"
82
86
    if start-stop-daemon --stop --quiet --retry 5 --oknodo --pidfile $PIDFILE --name $NAME; then
83
 
        start-stop-daemon --start --quiet --pidfile "$PIDFILE"  --chuid buildd:buildd --exec $DAEMON
 
87
       if [ -e /home/buildd/NO-DAEMON-PLEASE ]; then
 
88
           log_failure_msg "NO-DAEMON-PLEASE exists, not starting"
 
89
       else
 
90
           start-stop-daemon --start --quiet --pidfile "$PIDFILE"  --chuid buildd:buildd --exec $DAEMON
 
91
       fi
84
92
    fi
85
93
    log_end_msg $?
86
94
}