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

Re: Finding out order of rc scripts?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 05 August 2003 14:10, frank@kuesterei.ch (Frank Küster) 
wrote:

> So before sending the package to somebody for testing who has a
> running sid, I wanted to check wether the order of the symlinks in
> /etc/rcS.d/ hasn't changed. S40hostname is easy, it's made via
> update-rc.d in the postinst of netbase, and still has this name.
> However, I cannot find where the symlink to /etc/init.d/networking is
> made. The script itself comes from sysvinit, but I didn't find where
> this package creates symlinks. Also in debootstrap I couldn't find
> anything.
>
> Can somebody point me to the right place?

You can use packages.debian.org to find that etc/init.d/networking comes 
from netbase.

$ dpkg -S /etc/init.d/networking
netbase: /etc/init.d/networking
$

You can download the package from unstable and have a look at it's 
postinst to see where it runs update-rc.d:

$ grep networking /var/lib/dpkg/info/netbase.postinst | grep update-rc
            update-rc.d -f networking remove >/dev/null 2>&1
    update-rc.d networking start 40 S . start 35 0 6 . >/dev/null
$

So it is created as /etc/rcS.d/S40networking

I am under the impression that it is good practice to let the 
maintainers of sysvinit know when you add packages with initscripts, 
though I cannot find any supposting documentation with a glance in 
usr/share/doc/sysv-rc or usr/share/doc/debian-policy

Regards,

Paul Cupis
- -- 
paul@cupis.co.uk


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/L/G3IzuKV+SHX/kRAjxgAJ45q8b/0uqGLkZloY3/fQOdlq2qVACeMrue
zWlrgexKTmc/WZKCx+ph2QI=
=ajCr
-----END PGP SIGNATURE-----



Reply to: