Hi guys,

    Sorry for this absurdly late reply but I believe that I have some
information that hasn't been mentioned. I believe that this information is
correct, but I haven't the best track record. Still, I read the Apple docs
on this and it works on my system.

    The Web Sharing Preferences GUI changes the following line:

WEBSERVER=-NO-

to:

WEBSERVER=-YES-

in the file /private/etc/hostconfig. The $WEBSERVER environment variable is
thus set during startup. Later, all of the scripts in the
/System/Library/StartupItems/ directory are executed. In typical fashion,
the script, /System/Library/StartupItems/Apache/Apache executes rc.common
which sets the variables and then the Apache script checks the value of the
WEBSERVER variable with the following:

if [ "${WEBSERVER:=-NO-}" = "-YES-" ]; then

    If yes, the script simply executes:

    apachectl start

    If /sw/sbin/ occurs before /usr/sbin/ in your path, then the fink
version is already controlled by the GUI. Otherwise, change "apachectl
start" to "/sw/sbin/apachectl start". (or wherever fink installs it)

    Well, I hope this wasn't too much of a snooze but someone may have use
for the mechanism in general. In fact, if package developers supplied
startup lines, Fink could use this mechanism to develop a GUI that provides
automatic startup control. Fink could also then provide a "Launcher". Apple
has plans to extend this mechanism to control shutdown as well. This is, of
course, for when Fink goes GUI.
-- 
Gary Kerbaugh
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~
    Everybody wants to go back to nature -- but not on foot



_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to