On Thu, Aug 09, 2001 at 11:39:28AM -0400, Chuck Esterbrook wrote:
> At 10:51 AM 8/9/2001 -0400, Jeff Johnson wrote:
> >Thanks Chuck. webkit[.sh] can't find /usr/etc/rc.d/init.d/functions.
> >I did a "find" for functions and found 3 of them in examples folders.
> >Any suggestions for finding the correct one and installing it? Sorry
> >to burden you with my unix admin newbie-ness :)
> I think this was also reported by someone else. What op sys are you on?
> Apparently some flavors of Unix have the file in question and others don't.
> I suppose we might need to augment our script to define the functions if
> they can't be found. Since you already have a system that lacks these,
> perhaps you could make the mod.
Sorry, I wasn't following the thread that closely.
init.d/functions is definitely not a standard. The init.d/ directory itself
exists only on Unices that use the System V style initialization system.
In the BSD style, each service is started by a stanza in a general startup
script (/etc/rc.d/rc.M in Slackware Linux), not by its own script.
Nevertheless, Slackware supports an init.d/ directory for compatibility
with third-party packages.
My Debian Linux uses init.d/, but there's no init.d/functions .
Also, the location of the init.d/ directory is all over the map.
Red Hat Linux uses /etc/rc.d/init.d/, Debian Linux uses /etc/init.d/,
and Jeff's system uses /usr/etc/rc.d/init.d/ . The location of the
startup scripts in one of the biggest inconsistencies between Unices.
> You'll have to look up the sh syntax, as I only write sh scripts once a
> year and don't remember how. Also, you will want to look at your examples
> to see if there is appropriate definition for the success function.
> Or perhaps someone more sh-knowledgeable on this list can provide the patch.
Which functions do we need? Attached is a copy of the functions file
from Red Hat 6.2. Of course, some of the code is specific to that
On Unix, you also have the choice of putting a line in /etc/inittab.
That will automatically restart a server if it dies, but will hold off
if it dies too many times in a certain time period (implying a fatal
configuration error). Of course, inittab may be modified only by the
local sysadmin, not by a generic package.
-Mike (Iron) Orr, iron@... (if mail problems: mso@...)
http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol