miniupnpd: add status option on linux init.d script, set -e
This commit is contained in:
parent
4eb4a78c23
commit
b8cd7af65e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue