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

Re: Finding out order of rc scripts?



Paul Cupis <paul@cupis.co.uk> schrieb:

> 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
> $

Sorry, I messed things up: This I had found out yet, by the same
way. However, /etc/init.d/hostname.sh is from sysvinit, and I couldn't
find the place where the rcS.d-link to hostname.sh is made, neiter in
sysvinit's postinst nor in debootstrap.

> 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

I don't add the package, I just update it from "prehistoric" version
0.82 to 0.92. But the init script and link are there, even in the old
package. I just wanted to be sure that it doesn't break with recent
changes. 

Thanks, Frank
-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie



Reply to: