a chkconfig clone that works with upstart

Mark Rosenstand mark at borkware.net
Thu May 31 23:20:57 BST 2007


Hi ESR,

On Wed, 2007-05-30 at 14:47 -0400, Eric S. Raymond wrote:
> Enclosed please find code and man page of a bash+sed script that uses
> update-rc.d to emulate the behavior of the IRIX/Red-Hat chkconfig tool
> Try a few invocations with --dryrun to see exactly what it does --
> that switch makes it print the generated commands rather than
> executing them. 
> 
> Upconversion of the chkconfig.8 page to XML-DocBook is available on
> request, if you prefer that format.
> 
> This will be useful because some third-party packages (especially in 
> the Red Hat world) rely on chkconfig in their installation scripts.
> 
> I wrote this because as a Red Hat refugee I missed chkconfig.
> I'm contributing this to upstart for the usual reason, which is that
> I'd rather not have to maintain and separately distribute it myself.

You might want to submit it to the dpkg list instead as that's where
update-rc.d lives.

As upstart matures, runlevels (and hence update-rc.d) will become
obsolete, so bundling it with upstart would be weird.



More information about the upstart-devel mailing list