Help - Search - Members - Calendar
Full Version: Every Sunday at 4:15am, syslogd, background processes abend
The Planet Forums > Operating Systems > Red Hat Linux
HostGuy
This one has me stumped - hopefully you guys can point me in the right direction.

I have a process that runs in the background (an Unreal Tournament 99 server). It is launched by a php script which forks a shell script as a background process and runs under the apache user. In the event that the process stops, the shell script will restart it. I am using a PHP script to start the shell script so that the game instance can be administered remotely without giving out a shell account. Everything works. So far, so good.

The odd thing is that every Sunday, at around 4:15am server-time, the process dies. There's nothing in the server logs (e.g. segfault messages) but I can see that the logs are being rotated at that time. Each messages.log file is created around the same time, indicating that syslogd has been restarted but the previous log has no messages indicating that syslogd is restarting.

There are no cron jobs that run on a weekly basis. This only happens at 4:15am on Sundays, no other times.

If you could offer any suggestions, I would greatly appreciate it.

Thanks in advance,
HG
HostGuy
Update:

It looks like logrotate is causing the problem as it runs at 4am on Sundays (according to logrotate.conf). Among the various services that get restarted is Apache. Since the UT process was launched via a web page, it is owned by Apache and killed when the service is restarted.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.