• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Server [PHP] Start/Stop, how to?

kiki33

Active member
Dec 29, 2011
43
0
How to stop, and start server mit php?

My startup line:

screen -s killingfloor ./ucc-bin server KF-BioticsLab.rom?game=KFmod.KFGameType?VACSecured=true?MaxPlayers=6?AdminName=nem?AdminPassword=publikus -nohomedir


how to start, and kill the killingfloor process on php? I am using linux!
 
Assuming you have full privileges for PHP and your gameservers and PHP are on the same box:

Code:
// Start

shell_exec("screen -s killingfloor ./ucc-bin server KF-BioticsLab.rom?game=KFmod.KFGameType?VACSecured=tr ue?MaxPlayers=6?AdminName=nem?AdminPassword=publik us -nohomedir");

// Kill 

$pid = shell_exec("pidof ucc-bin");
shell_exec("kill -9 ".$pid);
 
Last edited:
Upvote 0