12-10-2006, 09:54 AM
I'm not sure if i "reniced" srcds under linux properly, anyway this is what i did:
1.) I started up my gameserver with the command line
2.) Then i closed my server by entering exit and i typed in crontab -e.
3.) Crontab opens, i put this command in
and hit enter.
4.) Then i hit Ctrl-x and it asks me if i would like to save the file, i enter y and save it as /home/justin/srcds_l/srcds.pid
5.) I start up my server but no message came up saying the pid file has been executed or anything.
How do i know if i did this correctly?
1.) I started up my gameserver with the command line
Code:
./srcds_run -game cstrike +maxplayers 16 +map de_dust2 -port 27015 -tickrate 100 -pidfile srcds.pid
3.) Crontab opens, i put this command in
Code:
*/5 * * * * renice -20 `cat /home/justin/srcds_l/cstrike/srcds.pid` >/dev/null 2>&1
4.) Then i hit Ctrl-x and it asks me if i would like to save the file, i enter y and save it as /home/justin/srcds_l/srcds.pid
5.) I start up my server but no message came up saying the pid file has been executed or anything.
How do i know if i did this correctly?