Project

General

Profile

lighttpd keeps restarting after shutdown

Added by cmweb over 13 years ago

I am not sure if anyone else has experience this issue but i have a working lighttpd install on a MacMini with tiger 10.4 OSX with php-fastcgi and mysql5.
I also have webmin installed so i can monitor its status and kill processes along the way.

I installed lighttpd using macports and have the "org.macports.lighttpd.plist" set in the LaunchDaemons folders so lighttpd automatically starts upon boot.

Here is the issue:

1) When I issue the "sudo /opt/local/etc/rc.d/lighttpd.sh stop" command from terminal services it shows that the server is being stopped. I see the message: "Stopping Lighttpd"

2) I clear the cache on my web browsers (both Firefox 3.6.8 and Safari 4.1.1) and navigate to the website I have running on port 80 and I can't access the site ( good what I want)

3) I clear the cache again and check the website and voila! the site is back up again.

4) I now go to the terminal command prompt and type "sudo killall -9 lighttpd" ... I am give the command prompt
and yet the site is still up.

5) I issue the command "sudo killall -9 lighttpd" two more times and i get "No matching processes found" ( GOOD what i want).

6) I check the site and viola! it is back up again! :(

7) I now go to webmin to check the "Running Processes" - I see that two processes for Lighttpd are running
as follows

(serveruserid)    /opt/local/sbin/lighttpd -f /opt/local/etc/lighttpd/lighttpd.conf
root opt/local/bin/daemondo --label=lighttpd --start-cmd /opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf ; --pid=exec

8) if I stop either one of these processes using the kill command in Webmin ..they just reboot themselves :(

What is going on here? How can I prevent them from rebooting on me when I issue the "sudo /opt/local/etc/rc.d/lighttpd.sh stop" or "killall -9 lighttpd" command?

Thank you for your help

See my Lighttpd config File attached.


Replies (1)

RE: lighttpd keeps restarting after shutdown - Added by bigyellow9999 about 13 years ago

I've had this experience as well. Here's what I've come up with so far. Hopefully this will help someone else so they don't have to bang their head against the wall like I was.

    (1-1/1)