Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 546318

Summary: [Feature Request] start-stop-daemon kill signals flag
Product: Gentoo Hosted Projects Reporter: Adam Feldman <np-hardass>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.