Game Server Query And Control Center
  • Home
  • Installation
  • Configuration
    • Cronjob
    • Control A Game Server
    • Game Server Console
  • Update
  • Screenshots
  • Settings
Powered by GitBook
On this page
Edit on GitHub
  1. Configuration

Cronjob

PreviousInstallationNextControl A Game Server

Last updated 2 years ago

In order to retreive historical data (player count, uptime...) you need to setup a .

Replace </path/to/directory> with the path to the directory, where the web-app is operating at.

Setting up a cronjob is as easy as a pie. In your shell type: crontab -e and append this line to the end of the file, that just opened.

*/10 * * * * cd </path/to/directory>/query/&& php -f cron.php > /dev/null 2>&1

Close the file. Now every 10 minutes, the cronjob executes a php script, which queries every game-server and stores the needed information as a json inside a file.

cronjob