Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155087 - rc-daemon.sh's start-stop-daemon does not support the 'schedule' form of --retry
Summary: rc-daemon.sh's start-stop-daemon does not support the 'schedule' form of --retry
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 197309 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-13 16:34 UTC by Dustin J. Mitchell
Modified: 2007-10-29 15:29 UTC (History)
1 user (show)

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 Dustin J. Mitchell 2006-11-13 16:34:47 UTC
'man start-stop-daemon' gives:
       -R|--retry timeout|schedule
...
              schedule  is a list of at least two items separated by slashes (/);
              each item may be -signal-number or [-]signal-name, which  means  to
              send that signal, or timeout, which means to wait that many seconds
              for processes to exit, or forever, which means to repeat  the  rest
              of the schedule forever if necessary.

which is a very handy functionality for daemons that take a while to die under normal circumstances, but should be killed after a long timeout.  However, the re-implmentation in rc-daemon.sh (sys-apps/baselayout-1.12.5) doesn't support this semantics.  This is verified as follows: using the schedule form results in a division-by-zero error when s-s-d is run as 'start-stop-daemon' in an initscript, while it works correctly when s-s-d is run as '/sbin/start-stop-daemon'.

uberlord, if this is something you're interested in fixing, I can work to submit a patch.  It looks like it would be a bit of work, though, so I haven't yet gone to the trouble.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-11-13 16:37:50 UTC
Why don't you try baselayout-1.13.0_alpha7 where this should already be fixed?
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-12-12 03:26:00 UTC
Fixed in baselayout-1.13.0_alpha9
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-10-29 15:29:15 UTC
*** Bug 197309 has been marked as a duplicate of this bug. ***