blob: 017aee60d877f8f249c0323a53677ae27abfd456 (
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
|
# All paths are relative to /var/lib/factorio/
# Save file name (or path), without the .zip suffix
SAVE_NAME=factorio-service-save
# Additional factorio arguments, such as:
# -v, --verbose enable verbose logging
# -c, --config PATH config file to use
# --no-log-rotation don't rotate log file
# --mod-directory PATH Mod directory to use
# --port N network port to use
# --bind ADDRESS[:PORT] IP address (and optionally port) to bind to
# --rcon-port N Port to use for RCON
# --rcon-bind ADDRESS:PORT IP address and port to use for RCON
# --rcon-password PASSWORD Password for RCON
# --use-server-whitelist If the whitelist should be used.
# --server-whitelist FILE Path to file with server whitelist.
# --server-banlist FILE Path to file with server banlist.
# --server-adminlist FILE Path to file with server adminlist.
# --console-log FILE Path to file where a copy of the server's log will be stored
# --server-id FILE Path where server ID will be stored or read from
#
# See /usr/bin/factorio -h for the full list of options
FACTORIO_EXTRA_ARGS="--server-banlist server-banlist.json --use-server-whitelist --server-whitelist server-whitelist.json --console-log console.log"
# Additional factorio arguments used when generating the map, such as:
# --map-gen-settings FILE Map generation settings
# --map-gen-seed SEED Map generation seed (you can also set the seed in map-gen-settings.json)
# --map-settings FILE Map settings
# --preset arg Name of the map generation preset to be used:
# default, rich-resources, marathon, death-world, death-world-marathon, rail-world, ribbon-world, island
#
# See /usr/bin/factorio -h for the full list of options
FACTORIO_CREATE_ARGS="--map-gen-settings /etc/factorio/map-gen-settings.json --map-settings /etc/factorio/map-settings.json --preset default"
# Keep in mind the save file will only be generated when starting the service and if it doesn't already exist
|