miniupnpd: add status option on linux init.d script, set -e

This commit is contained in:
Shawn Landen 2012-03-13 19:39:55 -07:00
parent 4eb4a78c23
commit b8cd7af65e
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,8 @@
# author: Thomas Bernard
# website: http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
set -e
MINIUPNPD=/usr/sbin/miniupnpd
ARGS='-f /etc/miniupnpd/miniupnpd.conf'
@ -35,6 +37,9 @@ case "$1" in
start-stop-daemon --start --quiet --pidfile /var/run/miniupnpd.pid --startas $MINIUPNPD -- $ARGS $LSBNAMES
log_end_msg $?
;;
status)
status_of_proc /usr/sbin/miniupnpd miniupnpd
;;
*)
log_action_msg "Usage: /etc/init.d/miniupnpd {start|stop|restart|reload|force-reload}"
exit 2