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

Re: Two-part initialization?



On Wed, 07 Mar 2001 13:26:35 -0500, sharkey@superk.physics.sunysb.edu
wrote:
>> (1)
>> Have one init script and have this init script be invoked in two
>> places.
>
>Yuck.

ack ;)

>> (2)
>> Have two completely different init scripts. I rejected this because
>> both scripts aren't that much different and there would be much
>> redundancy.
>
>Then have three scripts.  Put the common common code into a third script
>which is not called directly by init, but have the two init scripts call
>the third script.  This avoids redundancy and is quite clear, I think.

But it is as well yucky. Where should the script with the common code
be located? /etc/init.d as well?

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29



Reply to: