mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-10 14:16:02 +00:00
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
This commit is contained in:
parent
8111342423
commit
4eb4a78c23
@ -15,17 +15,19 @@ test -f $MINIUPNPD || exit 0
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
case "$1" in
|
||||
start) log_daemon_msg "Starting miniupnpd" "miniupnpd"
|
||||
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"
|
||||
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)
|
||||
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
|
||||
@ -33,7 +35,8 @@ restart|reload|force-reload)
|
||||
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}"
|
||||
*)
|
||||
log_action_msg "Usage: /etc/init.d/miniupnpd {start|stop|restart|reload|force-reload}"
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user