Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546318 - [Feature Request] start-stop-daemon kill signals flag
Summary: [Feature Request] start-stop-daemon kill signals flag
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-12 07:03 UTC by Adam Feldman
Modified: 2015-04-12 16:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Feldman gentoo-dev 2015-04-12 07:03:15 UTC
Sometimes daemons do not terminate using the signal currently used by start-stop-daemon (sigterm?), therefore it would be nice if there was a flag that could be used with start-stop-daemon -K that would allow one to specify a signal.
Comment 1 William Hubbs gentoo-dev 2015-04-12 14:24:53 UTC
If you are using the default start/stop functions, you can set the
stopsig variable to the signal you want to send or set the retry
variable to a retry schedule if you want to control the signal/wait
times for stopping a daemon.

If you are using start-stop-daemon directly, check out the -R and -s
options.

There is more info on the start-stop-daemon man page.

Please let me know if those options cover what you need.
Comment 2 Adam Feldman gentoo-dev 2015-04-12 16:31:29 UTC
I was focused on two modes, start and stop, and forgot that s-s-d had a third mode, --signal, which accomplishes the goal.