-
Notifications
You must be signed in to change notification settings - Fork 0
/
runciv.service
53 lines (45 loc) · 979 Bytes
/
runciv.service
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[Unit]
Description=A rust server for unciv
After=network.target
Wants=postgresql.service
After=postgresql.service
[Service]
Type=simple
User=runciv
Group=runciv
RuntimeDirectory=runciv
LogsDirectory=runciv
StateDirectory=runciv
ConfigurationDirectory=runciv
MemoryDenyWriteExecute=yes
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictRealtime=yes
RestrictNamespaces=~user
InaccessiblePaths=/boot
PrivateUsers=yes
UMask=0177
PrivateDevices=yes
CapabilityBoundingSet=
ProtectClock=yes
SystemCallFilter=@system-service
ProtectHome=yes
PrivateTmp=yes
RestrictSUIDSGID=yes
NoNewPrivileges=yes
LockPersonality=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=noaccess
ProtectSystem=yes
ProtectHostname=yes
RemoveIPC=yes
ProtectControlGroups=yes
SystemCallArchitectures=native
WorkingDirectory=/var/lib/runciv/
ExecStart=/usr/local/bin/runciv start
Restart=always
RestartSec=3
TimeoutStopSec=3
[Install]
WantedBy=multi-user.target