Lighttpd StartupItem for Mac OS X 10.3
As part of a major redesign of our web presence at work, I've been testing out Lighttpd for use as our primary web server. I've been hearing lots of good things about it and it seems to pair very nicely with Rails. Since I will also be deploying at least one major Rails app during the redesign and probably more in the future, it seemed prudent to at least give the little guy a look.
So, I downloaded, compiled and installed the latest version without any problems. Using the included sample config file, I was soon up and running and things were looking nice. So then I started looking around for a startup script. I found a couple included with the source for Linux, but nothing for OS X. So, I go to Google - surely someone somewhere has crossed this bridge. But, again, no dice.
The closest I was able to dig up was this nice lighttpd startup script for 10.4 (Tiger) - that'll come in handy when I start to setup and deploy to my production server. But, for now I'm stuck with 10.3. So, I dusted off my shell scripting tools and set to work. The end result is a nice (in my opinion) lighttpd startup script for Mac OS X 10.3 (Panther).
I've only tested it on 10.3.9, so I can't guarantee that it'll work on your system. But if you want to try it out, just download and unzip the files to /Library/StartupItems/LightTPDServer (you'll have to create that directory as root from the terminal). Then edit the appropriate lines at the top of /Library/StartupItems/LightTPDServer/LightTPDServer and you should be good to go.
Let me know if you find this useful.
Download: Lighttpd startup script for Mac OS X 10.3 (Panther)