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