summarylogtreecommitdiffstats
path: root/factorio-init.conf
blob: 5d31eea8f8c202ad5e0a10a2ce27cb150202a196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/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

# Enable alternative glibc directory for systems using older glibc versions ( ie RHEL CentOS and others )
ALT_GLIBC=0
# Put the Absolute path to the side by side glibc root here
ALT_GLIBC_DIR="/opt/glibc-2.18"
#Version of alt glibc goes here (i.e 2.18)
ALT_GLIBC_VER="2.18"

# 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=/usr/share/factorio

# Server admin settings
# Server admin list file, must be in the following format:
# [
#    admin1,
#    admin2,
#    adminX
# ]
# If the file does not exist in ${FACTORIO_PATH}/data, a blank copy will be created.
ADMINLIST=${FACTORIO_PATH}/data/server-adminlist.json

# The whitelist file is in the same format as the admin list file.
# If the file does not exist in ${FACTORIO_PATH}/data, it will not be used.
WHITELIST=${FACTORIO_PATH}/data/server-whitelist.json

# The banlist file is in the same format as the admin list file.
# If the file does not exist in ${FACTORIO_PATH}/data, it will not be used.
BANLIST=${FACTORIO_PATH}/data/server-banlist.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

# Delay starting the game server until the we confirm the pingpong servers are reachable.
# This makes sure that game server detects the correct external IP in a NAT setup.
# Useful for Cloud providers where VMs may start faster than their Internet connectivity is plumbed.
WAIT_PINGPONG=0

# Using install, it's possible to cache the tarballs fetched from Wube
INSTALL_CACHE_TAR=1
# set this to a directory where you allow this script to create a 'factorio-install' directory
INSTALL_CACHE_DIR=/tmp

#
# 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
# set this to a directory where you allow this script to create a 'factorio-update' directory.
UPDATE_TMPDIR=/tmp
# The directory ${UPDATE_TMPDIR}/factorio-update will be used by the updater to store patches for factorio.
#   If you set UPDATE_PERSIST_TMPDIR=1 this script will not try to clean up the directory.
#   This will effectively cache the patch files for later use but be aware that you need to handle eventual clean-up
#   of the ${UPDATE_TMPDIR}/factorio-update directory yourself.
UPDATE_PERSIST_TMPDIR=0
# prevent the script from restarting factorio during updates by setting this to 1
#   (note! This also means that you will be prevented from applying updates with the
#   script if the server is running)
UPDATE_PREVENT_RESTART=0

#
# There is also integration with Tantrisse's Factorio-mods-manager
# Uses UPDATE_USERNAME and UPDATE_TOKEN for mod management
# Access is exposed under the mod subcommand
# To install:
# git clone https://github.com/Tantrisse/Factorio-mods-manager.git
#

# absolute path to the Factorio-mods-manager script
MOD_SCRIPT_DIR=/path/to/mods_manager.py

# Extras
# Additional binary arguments, these will be sent to the binary when issuing the "start" command
EXTRA_BINARGS=""