Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion man/openrc-run.8
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ Display name used for the above defined command.
Process name to match when signaling the daemon.
.It Ar stopsig
Signal to send when stopping the daemon.
If using
.Xr supervise-daemon 8
then using
.Pa retry
is preferred.
.It Ar respawn_delay
Respawn delay
.Xr supervise-daemon 8
Expand Down Expand Up @@ -290,7 +295,7 @@ respawn_period::start:
retry:stop:start:
s6_log_arguments:::start
secbits:start:start:
stopsig:stop::stop
stopsig:stop:start:stop
supervise_daemon_args::start:
timeout_down:::stop
timeout_kill:::stop
Expand Down
8 changes: 8 additions & 0 deletions sh/supervise-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ supervise_start()
return 1
fi

if [ -n "$stopsig" ]; then
if [ -z "$retry" ]; then
retry="$stopsig/5"
else
ewarn "Both \$retry and \$stopsig set, ignoring \$stopsig"
fi
fi

if [ -n "$ready" ]; then
ewarn "Use 'notify=$ready' instead of 'ready=$ready'"
notify="$ready"
Expand Down
Loading