A simple factorio init script for linux
If you find yourself wondering why stuff is not working the way you expect:
- Enable debugging in the config and/or
- Try running the same commands as the factorio user
$ cd '/opt/factorio-init'
$ source ./config # Grab the config variables
$ echo $INVOCATION # Does this look correct to you?
$ $INVOCATION #Start the server, watch the log output for any Errors
- 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
This code is realeased with the MIT license, see the LICENSE file.