added service file

This commit is contained in:
2021-10-05 18:33:13 +02:00
parent 50b44d9762
commit 751e7213c9

26
csgowtfd.service Normal file
View File

@@ -0,0 +1,26 @@
[Unit]
Description=CSSGOWTF backend service
After=network.target
[Service]
DynamicUser=yes
ExecStart=/opt/csgowtfd/csgowtfd
WorkingDirectory=/var/lib/csgowtfd
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
ProtectHome=read-only
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
MemoryDenyWriteExecute=yes
LockPersonality=yes
[Install]
WantedBy=multi-user.target