18 lines
458 B
Django/Jinja
18 lines
458 B
Django/Jinja
[Unit]
|
|
Description=Terraria server
|
|
After=network.target
|
|
|
|
[Service]
|
|
ExecStart=/bin/mono /opt/terraria/TerrariaServer.exe -world "Worlds/{{ terraria.world }}.wld" -autocreate 3 -port {{ terraria.bind.port }} -ip {{ terraria.bind.ip }}
|
|
Restart=on-failure
|
|
User=nobody
|
|
Group=nogroup
|
|
WorkingDirectory={{ terraria.paths.data }}
|
|
ProtectSystem=strict
|
|
BindPaths=-{{ terraria.paths.data }}
|
|
TemporaryFileSystem=/:rw
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|