/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to init.d-mandos

  • Committer: Teddy Hogeborn
  • Date: 2014-01-06 15:56:54 UTC
  • Revision ID: teddy@recompile.se-20140106155654-urx23ytuvy0nxzwp
Update init script to modern standards.

* init.d-mandos (status): Moved to standard location.  Re-added use of
                          -p switch compared to skeleton file.
  (*): Update message to include "status".

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
. /lib/init/vars.sh
45
45
 
46
46
# Define LSB log_* functions.
47
 
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present.
 
47
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
 
48
# and status_of_proc is working.
48
49
. /lib/lsb/init-functions
49
50
 
50
51
#
122
123
                2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
123
124
        esac
124
125
        ;;
 
126
  status)
 
127
        status_of_proc "$DAEMON" "$NAME" -p "$PIDFILE" && exit 0 || exit $?
 
128
        ;;
125
129
  #reload|force-reload)
126
130
        #
127
131
        # If do_reload() is not implemented then leave this commented out
148
152
                esac
149
153
                ;;
150
154
          *)
151
 
                # Failed to stop
 
155
                # Failed to stop
152
156
                log_end_msg 1
153
157
                ;;
154
158
        esac
155
159
        ;;
156
 
  status)
157
 
        status_of_proc "$DAEMON" "$NAME" -p "$PIDFILE"
158
 
        ;;
159
160
  *)
160
161
        #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
161
 
        echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
 
162
        echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
162
163
        exit 3
163
164
        ;;
164
165
esac