Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382345 - sys-apps/openrc: start-stop-daemon(1) should allow --retry for --signal as well
Summary: sys-apps/openrc: start-stop-daemon(1) should allow --retry for --signal as well
Status: CONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 06:57 UTC by Michał Górny
Modified: 2024-02-17 06:30 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-09-09 06:57:31 UTC
The start-stop-daemon manpage lists '--retry' as option 'only used for stopping daemons'. It's quite unclear what 'stopping daemons' means in that context but it seems to work well with '--signal' as well. I'd appreciate if we allowed it being used that way as well.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2011-12-31 01:50:33 UTC
Uhm, I can't follow you..

--retry is only used in combination with the --stop command, it can be either a timeout value or signal/timeout combined (like SIGTERM/5).
--signal is only used for the kill signal.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-31 09:22:49 UTC
SYNOPSIS
     start-stop-daemon -S, --start daemon [--] [arguments]
     start-stop-daemon -K, --stop daemon
     start-stop-daemon -s, --signal signal daemon

I think I meant the third syntax.
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2012-01-02 19:05:48 UTC
@idl0r | mgorny: re bug 382345 - please give me an example or so. i still don't get it :P
@mgorny | idl0r: eh, if I did remember what I was doing at that time
@mgorny | but I think it was very hacky
@mgorny | maybe I wanted to send two signals at once, or a single signal with a delay
@mgorny | (something like --signal 0 --retry 30/SIGTER<)
@mgorny | but the bug was just about 'is it legit to use something like --signal HUP --retry 15/TERM?'
Comment 4 William Hubbs gentoo-dev 2012-01-02 19:42:59 UTC
I think what you want is something like

--retry 0/HUP,15/TERM

The --signal option is not part of stopping a daemon.

Does that give you what yu are looking for?
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-01-02 19:55:45 UTC
(In reply to comment #4)
> I think what you want is something like
> 
> --retry 0/HUP,15/TERM
> 
> The --signal option is not part of stopping a daemon.
> 
> Does that give you what yu are looking for?

Were. Right now, I don't use OpenRC anymore and I have no idea what I needed that for :P.
Comment 6 William Hubbs gentoo-dev 2012-01-02 21:38:46 UTC
@mgorny:

In that case, would you have any issues with us closing this bug as
resolved/needinfo?
Comment 7 William Hubbs gentoo-dev 2012-01-02 22:03:23 UTC
After speaking with mgorny on irc, this bug appears to just be a
documentation issue. We need todocument that --retry can work with
--signal.