~peter-pearse/ubuntu/oneiric/at/prop001

« back to all changes in this revision

Viewing changes to debian/rc

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-11-09 12:57:45 UTC
  • Revision ID: james.westby@ubuntu.com-20051109125745-64eslxy1v1jjm2gm
Tags: 3.1.9ubuntu1
* Merge to new Debian version.
* Derooting patch was accepted in Debian; manually reapply remaining Ubuntu
  changes to the clean Debian version (see below).
* debian/control: Only recommend mail-transport-agent and prefer postfix.
* debian/rc: LSB init script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
 
1
#! /bin/sh -e
2
2
#
3
3
# This file was automatically customized by debmake on Thu, 20 Feb 1997 17:33:12 +0100
4
4
#
22
22
case "$1" in
23
23
  start)
24
24
    log_begin_msg "Starting deferred execution scheduler..."
25
 
    start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $ARGS
 
25
    start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON -- $ARGS
26
26
    log_end_msg $?
27
27
    ;;
28
28
  stop)
29
29
    log_begin_msg "Stopping deferred execution scheduler..."
30
 
    start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
 
30
    start-stop-daemon --stop --quiet --pidfile $PIDFILE --name atd
31
31
    log_end_msg $?
32
32
    ;;
33
33
  force-reload|restart)
34
 
    sh $0 stop
35
 
    sh $0 start
 
34
    log_begin_msg "Restarting deferred execution scheduler..."
 
35
    start-stop-daemon --stop --quiet --oknodo --retry 30 --pidvfile $PIDFILE --name $DAEMON
 
36
    start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON -- $ARGS
 
37
    log_end_msg $?
36
38
    ;;
37
39
  *)
38
 
    log_success_msg "Usage: /etc/init.d/atd {start|stop|restart|force-reload}"
 
40
    echo "Usage: /etc/init.d/atd {start|stop|restart|force-reload|reload}"
39
41
    exit 1
40
42
    ;;
41
43
esac