Re: enabling/disabling daemons
Graham Wilson <bob@decoy.wox.org> wrote:
> On Fri, Sep 27, 2002 at 03:19:28PM +0200, Andreas Metzler wrote:
>> On Fri, Sep 27, 2002 at 07:35:47AM -0500, Graham Wilson wrote:
>>> what should ssh do then in its postinst file? first, it asks whether or
>>> not to start on boot, then what next?
>> Good question, fresh installation is easy: Call
>> "update-rc.d ssh stop 20 0 1 2 3 4 5 6 ." or
>> "update-rc.d ssh defaults", depending on the answer.
>> Upgrading OTOH is difficult because
>> update-rc.d -f ssh remove
>> update-rc.d -f ssh stop 20 0 1 2 3 4 5 6 .
^^ the second -f is superfluous.
>> is probably verboten.
... in maintainerscripts?
> what should the user do if he wants to change it after installation?
Hello,
On-->Off: See above
Off-->On: update-rc.d -f ssh remove
update-rc.d ssh defaults
invoke-rc.d ssh start
>> You have to additionally get rid of all direct invocations of
>> /etc/init.d/ssh in the maintainerscripts, too.
> and replace them with invoke-rc.d, right?
Yes, if you use dh_installinit you can simply switch to V4 mode (and
follow the instructions in dh_installinit(1)), else you can use the
snippet from policy.
cu andreas
--
Unofficial _Debian-packages_ of latest _tin_
http://www.logic.univie.ac.at/~ametzler/debian/tin-snapshot/
Reply to: