Andrew n marshall wrote:
What is the recommended way to start apache2 in Tiger?
Well, here's what I did, after reading a tip on Wincent Colaiuta's site: http://wincent.com/a/knowledge-base/archives/2005/05/keeping_subvers.php
Lines with a - at the begining are my notes, watch out for word wrap on long lines: - create a startupitem by copying the 1.3 version and modifying sudo cp -R /System/Library/StartupItems/Apache /Library/StartupItems/Apache2 sudo mv /Library/StartupItems/Apache2/Apache /Library/StartupItems/Apache2/Apache2 sudo nano /Library/StartupItems/Apache2/Apache2 - modify the content to match this: #!/bin/sh ## # Apache2 HTTP Server ## . /etc/rc.common StartService () { if [ "${WEBSERVER2:=-NO-}" = "-YES-" ]; then echo "Starting Apache2 web server" /sw/sbin/apachectl start fi } StopService () { echo "Stopping Apache2 web server" /sw/sbin/apachectl stop } RestartService () { if [ "${WEBSERVER2:=-NO-}" = "-YES-" ]; then echo "Restarting Apache2 web server" /sw/sbin/apachectl restart else StopService fi } RunService "$1" - modify hostconfig: sudo nano /etc/hostconfig - add a line: WEBSERVER2=-YES- sudo nano /Library/StartupItems/Apache2/StartupParameters.plist - content should be: { Description = "Apache2 web server"; Provides = ("Apache2 Server"); Uses = ("Disks", "NFS"); } - should now work on restart -- adrinux (aka Adrian Simmons) <http://adrinux.perlucida.com> e-mail <mailto:[EMAIL PROTECTED]> AOL/Yahoo IM: perlucida, Microsoft: [EMAIL PROTECTED] ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users