Hi,
my headless server is running on a vServer.
The server has his own user : facrorio.
How can i restart the server without losing any data? I once tryed simple #restart as root but there was a data loss in the savegame.
How can i close the server to prevent this?
Save restart of a headless server?
Re: Save restart of a headless server?
If you close the server with CTRL+C or by sending SIGINT to it, it will save the game to the savename it started from and then quit.
Re: Save restart of a headless server?
CTRL+C will not work because its a process. How does SIGINT work? I never heard of it?!daniel34 wrote:If you close the server with CTRL+C or by sending SIGINT to it, it will save the game to the savename it started from and then quit.
Code: Select all
sudo -u factorio /usr/local/factorio/factorio/bin/x64/./factorio --start-server Neuland.zip
This is the process.
Re: Save restart of a headless server?
Code: Select all
kill -INT $(pidof factorio)
You can also use Bisa's [linux] Dedicated server init script