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

Re: DEBIAN POLICY WEEKLY, #4 (October 23, 1997)



'Christian Schwarz wrote:'
>
>Topic 13: Starting daemons in the postinst scripts

[...]

>Wouldn't it be good if every script in /etc/init.d would start with a shell
>variable that's set to 0 or 1, depending on whether the daemon should be
>started at boot up time or not? For example:
>
>    #!/bin/sh
>
>    run_foo=0
>
>    test $run_foo == 0 && exit 0
>
>    ...
>
>The script (the variable) can be adapted by the postinst script. If the
>sysadmin wants the start the daemon, it should be started in the postinst
>script, too.

Why not use the links in /etc/rc?.d instead?  It it easier to preserve
over package upgrades too.

-- 
Christopher J. Fearnley          |  Linux/Internet Consulting
cjf@netaxs.com                   |  Design Science Revolutionary
http://www.netaxs.com/~cjf       |  Explorer in Universe
ftp://ftp.netaxs.com/people/cjf  |  "Dare to be Naive" -- Bucky Fuller


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: