[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFC: update-rc.d <script> disable|reenable

On Tuesday 23 September 2008 04:40:00 Michael Biebl wrote:
> Kel Modderman wrote:
> > Hi all,
> > 
> > This email describes an extension of update-rc.d to provide an interface
> > for disabling and reenabling initscript sysvinit runlevel start links.
> > 
> Hi again,
> thinking more about it, I think a function "is-enabled" would be quite
> handy.
> This would allow to query the init system in a defined way, if a given
> service is enabled or disabled.
> Another idea would be, to define a new update-rc.d function called
> "status", which would return either "running, not running or disabled".
> There were some efforts recently, to add a status action to the init
> scripts, which would be a prerequiste of such a new interface to work
> properly.

The mandate of update-rc.d is to manage initscript runlevel symlinks, not more
or less, as I understand it. Therefore the querying of service status seems
well outside of update-rc.d's scope.

Ubuntu have added a `service' utility in sysvinit (2.86.ds1-59ubuntu4), it
looks like a utility that satisfies your criteria, it is briefly introduced

It can be seen in the Ubuntu package diff on sysvinit's PTS:

Debian could adopt this service utility, or the ideas and code behind service
could be integrated into invoke-rc.d, making it "service-like" as some people

Thanks, Kel.

Reply to: