From 4eb4a78c2353d689b6dc1255288e598d5e5fd3af Mon Sep 17 00:00:00 2001 From: Shawn Landen Date: Tue, 13 Mar 2012 19:30:31 -0700 Subject: [PATCH] miniupnpd: cosmetics on linux/miniupnpd.init.d.script was amalgamation of tabs/spaces that required tab-stops=4 Convert largely to tabs, (8) and tried to make it line up a little better with style of existing scripts elsewhere --- miniupnpd/linux/miniupnpd.init.d.script | 45 +++++++++++++------------ 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/miniupnpd/linux/miniupnpd.init.d.script b/miniupnpd/linux/miniupnpd.init.d.script index 2d33d17..95b4f55 100644 --- a/miniupnpd/linux/miniupnpd.init.d.script +++ b/miniupnpd/linux/miniupnpd.init.d.script @@ -15,26 +15,29 @@ test -f $MINIUPNPD || exit 0 . /lib/lsb/init-functions case "$1" in -start) log_daemon_msg "Starting miniupnpd" "miniupnpd" - $IPTABLES_CREATE > /dev/null 2>&1 - start-stop-daemon --start --quiet --pidfile /var/run/miniupnpd.pid --startas $MINIUPNPD -- $ARGS $LSBNAMES - log_end_msg $? - ;; -stop) log_daemon_msg "Stopping miniupnpd" "miniupnpd" - start-stop-daemon --stop --quiet --pidfile /var/run/miniupnpd.pid - log_end_msg $? - $IPTABLES_REMOVE > /dev/null 2>&1 - ;; -restart|reload|force-reload) - log_daemon_msg "Restarting miniupnpd" "miniupnpd" - start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/miniupnpd.pid - $IPTABLES_REMOVE > /dev/null 2>&1 - $IPTABLES_CREATE > /dev/null 2>&1 - start-stop-daemon --start --quiet --pidfile /var/run/miniupnpd.pid --startas $MINIUPNPD -- $ARGS $LSBNAMES - log_end_msg $? - ;; -*) log_action_msg "Usage: /etc/init.d/miniupnpd {start|stop|restart|reload|force-reload}" - exit 2 - ;; + start) + log_daemon_msg "Starting miniupnpd" "miniupnpd" + $IPTABLES_CREATE > /dev/null 2>&1 + start-stop-daemon --start --quiet --pidfile /var/run/miniupnpd.pid --startas $MINIUPNPD -- $ARGS $LSBNAMES + log_end_msg $? + ;; + stop) + log_daemon_msg "Stopping miniupnpd" "miniupnpd" + start-stop-daemon --stop --quiet --pidfile /var/run/miniupnpd.pid + log_end_msg $? + $IPTABLES_REMOVE > /dev/null 2>&1 + ;; + restart|reload|force-reload) + log_daemon_msg "Restarting miniupnpd" "miniupnpd" + start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/miniupnpd.pid + $IPTABLES_REMOVE > /dev/null 2>&1 + $IPTABLES_CREATE > /dev/null 2>&1 + start-stop-daemon --start --quiet --pidfile /var/run/miniupnpd.pid --startas $MINIUPNPD -- $ARGS $LSBNAMES + log_end_msg $? + ;; + *) + log_action_msg "Usage: /etc/init.d/miniupnpd {start|stop|restart|reload|force-reload}" + exit 2 + ;; esac exit 0