aboutsummaryrefslogtreecommitdiff
path: root/sh/start-stop-daemon.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/start-stop-daemon.sh')
-rw-r--r--sh/start-stop-daemon.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/start-stop-daemon.sh b/sh/start-stop-daemon.sh
index 65ee6603..6b679ac2 100644
--- a/sh/start-stop-daemon.sh
+++ b/sh/start-stop-daemon.sh
@@ -46,7 +46,7 @@ ssd_start()
${command_user+--user} $command_user \
$_background $start_stop_daemon_args \
-- $command_args $command_args_background
- if eend $? "Failed to start $RC_SVCNAME"; then
+ if eend $? "Failed to start ${name:-$RC_SVCNAME}"; then
service_set_value "command" "${command}"
[ -n "${chroot}" ] && service_set_value "chroot" "${chroot}"
[ -n "${pidfile}" ] && service_set_value "pidfile" "${pidfile}"
@@ -80,7 +80,7 @@ ssd_stop()
${pidfile:+--pidfile} $chroot$pidfile \
${stopsig:+--signal} $stopsig
- eend $? "Failed to stop $RC_SVCNAME"
+ eend $? "Failed to stop ${name:-$RC_SVCNAME}"
}
ssd_status()