diff options
author | xiretza | 2017-04-14 00:26:58 +0200 |
---|---|---|
committer | xiretza | 2017-04-14 00:26:58 +0200 |
commit | d3d4ac1a37bf02c496988426ca85ebcdbc45d412 (patch) | |
tree | 682df5d9af488cc55e1a63a1288ea9cf2ae126d8 /factorio-init.conf | |
download | aur-d3d4ac1a37bf02c496988426ca85ebcdbc45d412.tar.gz |
initial commit
Diffstat (limited to 'factorio-init.conf')
-rw-r--r-- | factorio-init.conf | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/factorio-init.conf b/factorio-init.conf new file mode 100644 index 000000000000..a7f3d0b19ed3 --- /dev/null +++ b/factorio-init.conf @@ -0,0 +1,59 @@ +#!/bin/bash + +# Enable debugging, useful when you want to figure out why +# this script is not behaving the way you expect it to do +DEBUG=0 + +# What do you want to call this service? +SERVICE_NAME="Factorio-init" + +# Which user/group is running factorio? +# Running any public service as "root" is generally not recommended +USERNAME=factorio +USERGROUP=games + +# The absolute path to the factorio directory +FACTORIO_PATH=/var/lib/factorio/.factorio +WRITE_DIR=/var/lib/factorio/.factorio +BINARY=/usr/bin/factorio +# Server settings file, see data/server-settings.example.json +SERVER_SETTINGS=/etc/factorio/server-settings.json + +# Port on which you want to run the server +PORT=34197 + +# Save the command/chat/log on server start? Default location /opt/factorio/server.out +# Setting this to 0 will cause the script to erase the log file on each start +# If you set this to 1 you might want to apply logrotate on the log or it will eventually fill your disk +SAVELOG=0 + +# Factorio comes packaged in a tarball containing the directory named "factorio" +# when using this scripts update/install command we expect to see this very +# directory. If you want to supply your own update/install tar other than what you can download +# from factorio.com/download-headless you can use this option to tell the script this is ok. +# +# If you place your factorio install within a directory named "factorio" and you update/install +# with the official tarball you can safely ignore this option. +PACKAGE_DIR_NAME=factorio + +# +# narcotiq made a sweet update script for factorio and by cloning into this +# you can simply run "factorio update" provided you configure the below arguments +# To install the updater: +# +# git clone https://github.com/narc0tiq/factorio-updater +# + +# absolute path to the factorio-updater script +UPDATE_SCRIPT=/path/to/update_factorio.py +# Note that if you set HEADLESS=1 the username/token will not be used as the headless +# download is provided free of charge +HEADLESS=1 +UPDATE_USERNAME=you +UPDATE_TOKEN=yourtoken +UPDATE_EXPERIMENTAL=0 +UPDATE_TMPDIR=/tmp + +# Extras +# Additional binary arguments, these will be sent to the binary when issuing the "start" command +EXTRA_BINARGS="" |