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

Re: service helper package



On Mon, Nov 26, 2007 at 11:03:57PM +0100, Eric Lavarde wrote:
> 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.

If you *really* need to knobble an init script temporarily, an 'exit 0' at
the top works perfectly well.  That's a very, very rare occurance, though.

- Matt



Reply to: