Package: minidlna Version: 1.1.2+dfsg-1.1 Tags: patch Severity: wishlist Please add a "reload" action to the initscript - I have a fair amount of muscle memory and shell aliases that prefer "reload" over, say, "force-reload". :)
Patch attached that simply adds 'reload' as a synonym of force-reload. Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff --git a/debian/minidlna.init b/debian/minidlna.init index d6dd63c..7de09d0 100644 --- a/debian/minidlna.init +++ b/debian/minidlna.init @@ -146,15 +146,16 @@ case "$1" in status) status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $? ;; - restart|force-reload) + restart|reload|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) - if [ "$1" = "force-reload" ]; then + case "$1" in + reload|force-reload) # Rescan the collection DAEMON_ARGS="$DAEMON_ARGS -R" - fi + esac do_start case "$?" in 0) log_end_msg 0 ;; @@ -174,7 +175,7 @@ case "$1" in log_end_msg $? ;; *) - echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload|rotate}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload|reload|rotate}" >&2 exit 3 ;; esac