The problem could be with logfile creation. I've had similar problems with dying after some time. Now i am using openwrt-brcm24 optware feed and not getting any of this problems any more.
Hi,
I have a bit of a strange (at least to me) problem.
I use thttpd in conjuction with php and mysql to drive a website.
After a reboot, everything works fine. the thttpd process shows up in ps axf and top.
As long as the website is receiving hits it keeps working.. however after serveral minutes (5-10) of inactivity the thttpd process stops, the website doesn't work anymore and the process thttpd is nowhere to be found with ps axf or top.
I then manually start thttpd to get it running.. now it runs ok, even idle for several hours.. so I thought this would be the sollution.. added a restart-command for thttpd at the end of my post-boot script..
Now I discover that the thttpd proces is not running anymore.
??
Anyone have a clue why thttpd stops working when idle?
(at the time, the asus is downloading with transmission and SABnzbd, but the swap-memory is not fully filled.. that's why I think thttpd is not exiting because of lack of resources)
I can provide more info if one wants..
Thanks in advance,
The problem could be with logfile creation. I've had similar problems with dying after some time. Now i am using openwrt-brcm24 optware feed and not getting any of this problems any more.
Hi Oleo,
thanks for the information,
I will take a look in the log-file creation..
However.
Did some things last night.. (nothing with thttpd) and rebooted the router several times..
The website is still up and running and did not die until now (even not when idling.. i know it didn't receive any requests last night. )
Let's hope the problem is solved..
Anyway... if it happens again, I now have a lead where to look at..
(still a newbie with *nix.. hehe.. )
Hi,
i had the same problem, too.
I wrote an little watchdog, which restarts the thttpd, when it's down.
That works great for me.
WL-500gP => 1.9.2.7-7g (2007-04-06)
Running: thttpd, php 5.1, vsftp, rrdtool
http://onlinefussballmanager.de/userbar/0/53647.png
still happening every now and then.
did the same, wrote a 'check' script which restarts thttpd if it's down.