Source: timidity Source-Version: 2.13.2-40.4 Severity: wishlist Tags: patch
Hi! The attached patch fixes the LSB init script to have more consistent output. Thanks, Guillem
From 573f696079bb1a262a5efeaa4e0906c20b2a64d2 Mon Sep 17 00:00:00 2001 From: Guillem Jover <[email protected]> Date: Sat, 30 Apr 2016 16:34:06 +0200 Subject: [PATCH] timidity: Fix LSB init output --- debian/timidity-daemon.timidity.init | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/timidity-daemon.timidity.init b/debian/timidity-daemon.timidity.init index f4a8364..0d0aad7 100644 --- a/debian/timidity-daemon.timidity.init +++ b/debian/timidity-daemon.timidity.init @@ -61,6 +61,8 @@ PARAMS="${TIM_ALSASEQPARAMS} -iAD" START="--start --chuid ${SERVER_USER} --quiet --exec ${DAEMON} --pidfile ${PIDFILE} -- ${PARAMS}" +set +e + case "$1" in start) #log_daemon_msg "Starting" "${NAME}" @@ -69,7 +71,7 @@ case "$1" in log_warning_msg "ALSA is not active, cannot start $DESC" exit 0 } - log_begin_msg "Starting $DESC..." + log_daemon_msg "Starting $DESC" "$NAME" mkdir -p /var/run/timidity chown timidity /var/run/timidity if start-stop-daemon ${START} < /dev/null >/dev/null 2>&1; then @@ -80,8 +82,8 @@ case "$1" in fi ;; stop) - log_begin_msg "Stopping $DESC..." - if start-stop-daemon --stop --oknodo --pidfile ${PIDFILE} \ + log_daemon_msg "Stopping $DESC" "$NAME" + if start-stop-daemon --quiet --stop --oknodo --pidfile ${PIDFILE} \ --name ${NAME} --retry 10 ; then log_end_msg 0 else -- 2.8.1

