summarylogtreecommitdiffstats
path: root/vrising-server.service
blob: ffa2fd596ac0eb390d1358047bcf4697bf6dc9bc (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
[Unit]
Description=V Rising Dedicated Server
After=network.target vrising-framebuffer.service
Requires=vrising-framebuffer.service
JoinsNamespaceOf=vrising-framebuffer.service

[Service]
Type=simple
User=vrising
Group=vrising
Environment="DISPLAY=:73691542"
ExecStart=/usr/bin/wine VRisingServer.exe -persistentDataPath Z:/opt/vrising-server/ServerData/
ExecStop=/opt/vrising-server/gracefulshutdown.sh
WorkingDirectory=/opt/vrising-server
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
LockPersonality=true
MemoryDenyWriteExecute=false
RestrictSUIDSGID=true
RemoveIPC=true

[Install]
WantedBy=multi-user.target