1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Running the server with cron and screen
---------------------------------------
You can run the server in a screen(1) session and from a cron @reboot action.
This can be used to run multiple instances of the server; you'll need to set
a different serverport for each server. It is recommended to create a different user
and server-init.cfg for each server and to disable shell access by pointing the shell
to /bin/false.
To achieve this, you could put something like this in the cube2 user's
crontab:
@reboot screen -d -m -S ffa /usr/games/cube2-server -q/home/cube2
or in /etc/crontab or a file in /etc/cron.d:
@reboot cube2 screen -d -m -S ffa /usr/games/cube2-server -q/home/cube2
|