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

Re: service helper package



Eric Lavarde schrieb:
> Hi,
> 
> Thomas Goirand wrote:
>> Stephen Gran wrote:
>>>>> # Check whether we were configured to not start the services.
>>>>> check_for_no_start() {
>>>>>     if [ "$SERVICE_DISABLED" = "yes" ]; then
>>>> This is such a broken behavior. Initscripts are enabled and disabled in
>>>> the configuration of the init system.
>>> That's not quite true - many packages in debian use an enable/disable
>>> variable in an /etc/default/package file.
>>
>> Not talking about any policy, but I personally hate it. Why on earth
>> would you want to have a package NOT to work if you install it? This is
>> insane...
> You might want to disable _temporarily_ a certain application? It's
> easier/quicker than to reconfigure the init system and you don't loose
> the information about run-levels where the program is meant to start.
> 

Just use a tool like sysv-rc-conf which manages the symlinks for you.
sysv-rc-conf $service on|off
It can't be easier than that and it works the way it's meant to be.

I also hate the enable/disable flags in /etc/default/$service.

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: