summarylogtreecommitdiffstats
path: root/palworld-server.service
blob: b55af160d03de6f343200b6704bb0eef1fec01a2 (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=Palworld Dedicated Server
Wants=network-online.target
After=syslog.target network.target nss-lookup.target network-online.target

[Service]
Type=simple
User=palworld
Group=palworld
StandardOutput=journal
Restart=on-failure
Environment="LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH"
EnvironmentFile=/etc/palworld/server.conf
ExecStart=/opt/palworld-server/PalServer.sh -port=${PORT} -players=${PLAYERS} ${COMMUNITY} -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
WorkingDirectory=/opt/palworld-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