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,26 +15,29 @@ test -f $MINIUPNPD || exit 0
|
|||||||
. /lib/lsb/init-functions
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start) log_daemon_msg "Starting miniupnpd" "miniupnpd"
|
start)
|
||||||
$IPTABLES_CREATE > /dev/null 2>&1
|
log_daemon_msg "Starting miniupnpd" "miniupnpd"
|
||||||
start-stop-daemon --start --quiet --pidfile /var/run/miniupnpd.pid --startas $MINIUPNPD -- $ARGS $LSBNAMES
|
$IPTABLES_CREATE > /dev/null 2>&1
|
||||||
log_end_msg $?
|
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
|
stop)
|
||||||
log_end_msg $?
|
log_daemon_msg "Stopping miniupnpd" "miniupnpd"
|
||||||
$IPTABLES_REMOVE > /dev/null 2>&1
|
start-stop-daemon --stop --quiet --pidfile /var/run/miniupnpd.pid
|
||||||
;;
|
log_end_msg $?
|
||||||
restart|reload|force-reload)
|
$IPTABLES_REMOVE > /dev/null 2>&1
|
||||||
log_daemon_msg "Restarting miniupnpd" "miniupnpd"
|
;;
|
||||||
start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/miniupnpd.pid
|
restart|reload|force-reload)
|
||||||
$IPTABLES_REMOVE > /dev/null 2>&1
|
log_daemon_msg "Restarting miniupnpd" "miniupnpd"
|
||||||
$IPTABLES_CREATE > /dev/null 2>&1
|
start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/miniupnpd.pid
|
||||||
start-stop-daemon --start --quiet --pidfile /var/run/miniupnpd.pid --startas $MINIUPNPD -- $ARGS $LSBNAMES
|
$IPTABLES_REMOVE > /dev/null 2>&1
|
||||||
log_end_msg $?
|
$IPTABLES_CREATE > /dev/null 2>&1
|
||||||
;;
|
start-stop-daemon --start --quiet --pidfile /var/run/miniupnpd.pid --startas $MINIUPNPD -- $ARGS $LSBNAMES
|
||||||
*) log_action_msg "Usage: /etc/init.d/miniupnpd {start|stop|restart|reload|force-reload}"
|
log_end_msg $?
|
||||||
exit 2
|
;;
|
||||||
;;
|
*)
|
||||||
|
log_action_msg "Usage: /etc/init.d/miniupnpd {start|stop|restart|reload|force-reload}"
|
||||||
|
exit 2
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user