From b8cd7af65e6dbee31021a77f750c98172ae4580d Mon Sep 17 00:00:00 2001 From: Shawn Landen Date: Tue, 13 Mar 2012 19:39:55 -0700 Subject: [PATCH] miniupnpd: add status option on linux init.d script, set -e --- miniupnpd/linux/miniupnpd.init.d.script | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miniupnpd/linux/miniupnpd.init.d.script b/miniupnpd/linux/miniupnpd.init.d.script index 95b4f55..05b54f6 100644 --- a/miniupnpd/linux/miniupnpd.init.d.script +++ b/miniupnpd/linux/miniupnpd.init.d.script @@ -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