On Tue, Sep 12, 2000 at 11:56:30AM +0200, Julio Merino (jmmv@mail.com) wrote:
> On Mon, Sep 11, 2000 at 11:13:57PM -0700, kmself@ix.netcom.com wrote:
>
> > On Mon, Sep 11, 2000 at 10:21:53PM +0200, Julio Merino (jmmv@mail.com) wrote:
> > > Hi all,
> > >
> > > I would like to know where should I put my own boot up scripts. For
> > > example, I write one to restore my mixer setup on boot up and save it
> > > in shutdown. I saved it in /etc/init.d and then I made the appropiate
> > > links.
> >
> > /etc/init.d/bootmisc.sh is where generic stuff gets run at startup.
> > There is no specific "local" configuration file per se, particularly for
> > shutdown operations, which I'm aware of.
>
> But bootmisc.sh could be replaced with new installations of packages,
> isn't it ?
Not if the package is written according to the Debian Policy:
_Do not_ include the `/etc/rc<n>.d/*' symbolic links in `dpkg''s
conffiles list! _This will cause problems!_ You should, however,
treat the `/etc/init.d' scripts as configuration files, either by
marking them as conffiles or managing them correctly in the
maintainer scripts (see Section 4.7, `Configuration files'). (This
is important since we want to give the local system administrator
the chance to adapt the scripts to the local system--e.g., to
disable a service without de-installing the package, or to specify
some special command line options when starting a service--while
making sure her changes aren't lost during the next package
upgrade.)
/usr/share/doc/debian-policy/policy.text.gz
<...>
> It could be interesting creating some /usr/local/etc/... as said
> before.
It would be a bad idea. You'd have to modify the entire init.d process
to do this.
--
Karsten M. Self <kmself@ix.netcom.com> http://www.netcom.com/~kmself
Evangelist, Opensales, Inc. http://www.opensales.org
What part of "Gestalt" don't you understand? Debian GNU/Linux rocks!
http://gestalt-system.sourceforge.net/ K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0
Attachment:
pgpfsZyJuEtiQ.pgp
Description: PGP signature