summarylogtreecommitdiffstats
path: root/satisfactory-server.service
blob: e30abc137d4a7a92f3b87243fe6ad01c54231613 (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
[Unit]
Description=Satisfactory Dedicated Server
Wants=network-online.target
After=syslog.target network.target nss-lookup.target network-online.target

[Service]
Type=simple
User=satisfactory
Group=satisfactory
StandardOutput=journal
Restart=on-failure
Environment="LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH"
EnvironmentFile=/etc/satisfactory/server.conf
ExecStart=/opt/satisfactory-server/FactoryServer.sh -ServerQueryPort=${QUERYPORT} -BeaconPort=${BEACONPORT} -Port=${PORT} -multihome=0.0.0.0
WorkingDirectory=/opt/satisfactory-server
KillSignal=SIGINT
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
LockPersonality=true
MemoryDenyWriteExecute=false
RestrictRealtime=true
RestrictSUIDSGID=true
RemoveIPC=true
SystemCallFilter=@system-service
SystemCallArchitectures=native

[Install]
WantedBy=multi-user.target