A simple factorio init script for linux
- Create a directory where you want to store this script along with configuration. (either copy-paste the files or clone from github):
$ cd '/opt'
$ git clone https://github.com/Bisa/factorio-init.git
- Rename config.example to config and modify the values within according to your setup.
- Symlink the init script:
$ ln -s /opt/factorio-init/factorio /etc/init.d/factorio
- Make the script executable:
$ chmod +x /opt/factorio-init/factorio
- Try it out!
$ service factorio help
- Symlink the systemd unit file and configuration (have a look at the files in case you need to modify them for your environment)
$ ln -s /opt/factorio-init/factorio.service /etc/systemd/system/
$ ln -s /opt/factorio-init/config /etc/default/factorio
- Symlink the init-script to allow controlling the server from the commandline (optionally, change the path to the script in the unit file)
$ ln -s /opt/factorio-init/factorio /usr/local/bin/
- Reload to allow systemd to pick up your new unit and start the service
$ systemctl daemon-reload
$ systemctl start factorio.service
The code adheres to Semantic Versioning v2.0.0 http://semver.org/spec/v2.0.0.html A release is denoted by the github release system using git tags.
This code is realeased with the MIT license, see the LICENSE file.