Process stops by itself

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
beb4e
Forum Newbie
Posts: 1
Joined: Thu Jan 26, 2012 2:42 pm

Process stops by itself

Post by beb4e »

Hello. I have a background process started using the following code

Code: Select all

 system("taskset -c $cpu ".DOCROOT."game/$type/hlds_run -game cstrike -noupdate +servercfgfile ".$conf." +port ".$port." +maxplayers ".$players." +map de_dust2 +sys_ticrate ".$sys_ticrate." +ip ".$ip."".$pingboost." > ".$log." 2>&1 -binary ./hlds_amd &"); 
But after 24 to 48 hours, at 4-6 a.m., the process stops by itself. There are no error logs. It is started under Apache. When the exactly same command is started by hand through root there are no problems.
Thanks in advance for any ideas...
Post Reply