diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2017-10-27 19:22:09 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-10-27 19:22:09 -0500 |
commit | 913b2ca53771742385d5c69164aefcaab634f012 (patch) | |
tree | e1acfe1a080caf48a4af7f9b0fd17b4ca05497f9 /sh | |
parent | 3fe99c8b8264269dd935d52a1a52581cc0f14e8e (diff) |
supervise-daemon: use RC_SVCNAME as the first argument to the daemon
This makes ps show which service the supervisor is monitoring.
Diffstat (limited to 'sh')
-rw-r--r-- | sh/supervise-daemon.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/supervise-daemon.sh b/sh/supervise-daemon.sh index e5d8d461..f6e599d5 100644 --- a/sh/supervise-daemon.sh +++ b/sh/supervise-daemon.sh @@ -22,7 +22,7 @@ supervise_start() # The eval call is necessary for cases like: # command_args="this \"is a\" test" # to work properly. - eval supervise-daemon --start \ + eval supervise-daemon "${RC_SVCNAME}" --start \ ${retry:+--retry} $retry \ ${chroot:+--chroot} $chroot \ ${pidfile:+--pidfile} $pidfile \ @@ -49,7 +49,7 @@ supervise_stop() pidfile="${startpidfile:-$pidfile}" [ -n "$pidfile" ] || return 0 ebegin "Stopping ${name:-$RC_SVCNAME}" - supervise-daemon --stop \ + supervise-daemon "${RC_SVCNAME}" --stop \ ${pidfile:+--pidfile} $chroot$pidfile \ ${stopsig:+--signal} $stopsig |