/etc/init.d/* status .. what to do when transitioning to an upstart job?

Kees Cook kees at ubuntu.com
Thu Apr 14 20:11:26 UTC 2011


On Thu, Dec 16, 2010 at 08:41:56AM +0100, Thierry Carrez wrote:
> Kees Cook wrote:
> >> /etc/service/status.d
> >>
> >> And if one exists for the job name, run it, otherwise just run the
> >> upstart status and provide an LSB compatible return code.
> >>
> >> This would also allow for the post-start stanza to call the same code if
> >> it is needed.
> >>
> >> Does anyone have strong thoughts on this? Given the service.d approach,
> >> it would seem the correct course of action is to open a feature request
> >> against sysvinit, document it in our upstart job writing best practices,
> >> and to document this feature in the server guide.
> > 
> > Why should this be external to upstart? This seems to me like a clearly
> > missing feature in upstart itself. (i.e. a "status" stanza for services
> > that need a non-passive check.)
> 
> +1 on an optional, specific "status" stanza in upstart scripts. When
> present, it could be automatically called as a post-start before
> "started" is emitted, and would also be called when "status" is used.

Has anything happened with this? Would this make a good UDS topic?

-Kees

-- 
Kees Cook
Ubuntu Security Team



More information about the ubuntu-devel mailing list