Empire Server Startup Scripts (1.1.0)
Startup scripts for the Empire game server - uses the "screen" command to manage session. This also restarts the Empire server process if it crashes.
Official support sites: Official Github Repo - Official Forum
These start up the Empire server at boot time with a "screen" process.
- Copy empire into /home/empowner/bin - make sure it is executable
- Copy startempire into /home/empowner/empire - make sure it is executable
- Put @reboot /home/empowner/bin/empire start into your crontab
When you want to view the Empire console, just enter "screen -r" in your shell.
To disconnect from the Empire console just press CTRL-A CTRL-D. This will leave it running and you can reconnect to it again.
I have only tested this on Ubuntu 16.04 & 18.04 servers...
If you want to turn off the server respawning type "touch /home/empowner/empire/nostart". To reenable it type "rm /home/empowner/empire/nostart".
Note: If you don't already have the "screen" tool installed you will need to install it by "sudo apt-get install screen".