~ubuntu-branches/ubuntu/quantal/dh-make/quantal

« back to all changes in this revision

Viewing changes to lib/debian/init.d.ex

  • Committer: Bazaar Package Importer
  • Author(s): Craig Small
  • Date: 2006-11-01 08:30:21 UTC
  • mfrom: (1.1.5 edgy)
  • Revision ID: james.westby@ubuntu.com-20061101083021-mkdu8suq5t891dh7
* Stopped shiiping the kde examples (Closes: #372287)
* debiank/rules is executable (Closes: #372768)
* de-hypened man page (Closes: #372777)
* templates changed to use compat level 5 (Closes: #370468)
* Default priority extra in templates (Closes: #373603)
* MAKE install var=xx => MAKE var=xx install (Closes: #374175)
* Consitent formatting of maintainer script (Closes: #370488)
* Kernel module name consistent (Closes: #384085)
* bzip2 path was changed (Closes: #377523)
* fixes for cdbs template (Closes: #382042)
* Now supports ~ in upstream version number (Closes: #387465)
* fixed force-reload behaviour of init.d template to follow LSB
  (Closes: #377292)
* README.Debian the same author line as in changelog (Closes: #379773)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        # start-stop-daemon --stop --signal 1 --quiet --pidfile \
50
50
        #       /var/run/$NAME.pid --exec $DAEMON
51
51
  #;;
52
 
  restart|force-reload)
 
52
  force-reload)
53
53
        #
54
54
        #       If the "reload" option is implemented, move the "force-reload"
55
55
        #       option to the "reload" entry above. If not, "force-reload" is
56
 
        #       just the same as "restart".
57
 
        #
58
 
        echo -n "Restarting $DESC: "
 
56
        #       just the same as "restart" except that it does nothing if the
 
57
        #   daemon isn't already running.
 
58
        # check wether $DAEMON is running. If so, restart
 
59
        start-stop-daemon --stop --test --quiet --pidfile \
 
60
                /var/run/$NAME.pid --exec $DAEMON \
 
61
        && $0 restart \
 
62
        || exit 0
 
63
        ;;
 
64
  restart)
 
65
    echo -n "Restarting $DESC: "
59
66
        start-stop-daemon --stop --quiet --pidfile \
60
67
                /var/run/$NAME.pid --exec $DAEMON
61
68
        sleep 1