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

Re: Enabling/disabling/floating services in runlevels



On Fri, Apr 09, 2004 at 04:08:56PM +0200, Patrice Fortier wrote:
> Great!
> What are the implications of this? ie: Could we easily change the
> behviour during an upgrade?

easily change in your maintainer script, yes.  as a general automatic
behaviour for update rc.d, i would guess it could with some effort.
it might have to be an ugly hack calling dpkg -l, but i'm pretty sure
it's at least possible.

> For example in postinst:
>  - if we're upgrading, don't touch /etc/rc?.d files
>  - if not use update-rc.d as usual
> As a sidenote, in this case do we still need the link test in
> update-rc.d (install after non-purged remove)?

basically, the postinst script is called with different arguments by
dpkg depending on what it's doing, all of which is defined in debian policy
chapter 6 (specifically 6.4 and 6.5 are most relevant), and yes, there
is a test to see if you're installing onto a system that has config
files only from a previous install.



	sean

Attachment: signature.asc
Description: Digital signature


Reply to: