[wellylug] wot's in /etc/init.d/functions? from Re: how to adapt this iptables setup?
Brian Boutel
brian at boutel.co.nz
Wed Aug 27 14:20:58 NZST 2003
Bret Comstock Waldow wrote:
> On Tue, 2003-08-26 at 19:09, Brian Boutel wrote:
>
>>
>>
>>Johann Koenig wrote:
>>
>>
>>>On Mon, 25 Aug 2003 15:15:27 -0400
>>>Bret Comstock Waldow <bwaldow at alum.mit.edu> wrote:
>>>
>>>
>>>
>>>>Ok. There is no /etc/rc.d in my Debian system. /etc/rcX.d has some
>>>>meaning beyond just being another place to gather files - it
>>>>corresponds to runlevel X, and gets swept automatically as the system
>>>>passes through that runlevel. What is the meaning and equivalent of
>>>>/etc/rc.d? The other directories referenced appear to exist.
>>>
>>>
>>>Usually scripts are put in /etc/init.d in debian and symlinked to
>>>/etc/rcX.d (X being the runlevel) with the appropriate Sxx/Kxx (xx
>>>corresponding to the order in which the scripts are run) prefix. I would
>>>assume from what you are saying is that /etc/rc.d is the RH equiv of
>>>/etc/init.d
>>
>>
>>No. In RH, /etc/rc.d contains links to the various /etc/rcX.d
>>directories and init.d, and misc rc files like rc, rc.local and rc.sysinit.
>>
>>I assume that conventions have changed over time, so the present mess is
>>designed to ensure that programs that refer to /etc/rcX.d/Sxxscript or
>>to /etc/rc.d/rcX.d/Sxxscript will all work.
>
>
> Sigh. Here's another one. One of his scripts has a line that
> references "/etc/init.d/functions". Can someone with RH or Mandrake
> tell me what is in this script?
>
It's just the common functions used by scripts in init.d
--brian
--
Brian Boutel
Wellington New Zealand
More information about the wellylug
mailing list