~ubuntu-branches/ubuntu/gutsy/dansguardian/gutsy-updates

« back to all changes in this revision

Viewing changes to debian/dansguardian.init

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2005-04-08 21:02:42 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050408210242-ie5s6v0nbmlinpxn
Tags: 2.8.0.4-2
Added --oknodo to start-stop-daemon to get restarting 
working if it isn't started before (Closes: #303762)
Thanks to Kevin Traas for the patch 

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        ;;
40
40
  stop)
41
41
        echo -n "Stopping $DESC: "
42
 
        start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
 
42
        start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/$NAME.pid \
43
43
                --exec $DAEMON
44
44
        echo "$NAME."
45
45
        ;;
46
 
  #reload)
47
 
        #
48
 
        #       If the daemon can reload its config files on the fly
49
 
        #       for example by sending it SIGHUP, do it here.
50
 
        #
51
 
        #       If the daemon responds to changes in its config file
52
 
        #       directly anyway, make this a do-nothing entry.
53
 
        #
54
 
        # echo "Reloading $DESC configuration files."
55
 
        # start-stop-daemon --stop --signal 1 --quiet --pidfile \
56
 
        #       /var/run/$NAME.pid --exec $DAEMON
57
 
  #;;
 
46
  reload)
 
47
        echo "Reloading $DESC configuration files."
 
48
        start-stop-daemon --stop --signal 1 --quiet --pidfile \
 
49
                /var/run/$NAME.pid --exec $DAEMON
 
50
        ;;
58
51
  restart|force-reload)
59
52
        #
60
53
        #       If the "reload" option is implemented, move the "force-reload"
62
55
        #       just the same as "restart".
63
56
        #
64
57
        echo -n "Restarting $DESC: "
65
 
        start-stop-daemon --stop --quiet --pidfile \
 
58
        start-stop-daemon --stop --quiet --oknodo --pidfile \
66
59
                /var/run/$NAME.pid --exec $DAEMON
67
60
        sleep 2
68
61
        start-stop-daemon --start --quiet --pidfile \