~mvo/unattended-upgrades/0.79

« back to all changes in this revision

Viewing changes to debian/unattended-upgrades.init

  • Committer: Michael Vogt
  • Date: 2012-06-29 08:09:25 UTC
  • mfrom: (201.1.86 unattended-upgrades)
  • Revision ID: michael.vogt@ubuntu.com-20120629080925-4evbstjn8amtcii1
merged from the ubuntu branch (until r287 before the python3 port)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
. /lib/lsb/init-functions
28
28
 
29
29
case "$1" in
30
 
    start|restart|force-reload|status)
 
30
start|restart|force-reload|status)
31
31
        # nothing, just to keep update-rc.d happy (see debian #630732)
32
32
        ;;
33
 
    stop)
 
33
stop)
34
34
        if [ -e $SHUTDOWN_HELPER ]; then
35
 
            [ "$VERBOSE" != "no" ] && log_action_begin_msg "Checking for running $DESC"
36
 
            python $SHUTDOWN_HELPER
37
 
            [ "$VERBOSE" != "no" ] && log_action_end_msg $? "$NAME"
 
35
                [ "$VERBOSE" != "no" ] && log_action_begin_msg "Checking for running $DESC"
 
36
                python $SHUTDOWN_HELPER
 
37
                [ "$VERBOSE" != "no" ] && log_action_end_msg $? "$NAME"
38
38
        fi
39
39
        ;;
40
 
    *)
 
40
*)
41
41
        echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
42
42
        exit 3
43
43
        ;;