upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / dopewars / trunk / dopewars.service
bloba4fa38ac11bea3fce16d87e1b803ba4417f092f6
1 [Unit]
2 Description=Dopewars Server
3 Documentation=https://dopewars.sourceforge.io/docs/server.html
4 After=network.target dopewars.socket
5 Requires=dopewars.socket
6 Wants=network-online.target systemd-networkd-wait-online.service
8 [Service]
9 Type=oneshot
10 ExecStart=/usr/bin/dopewars -S -r /run/dw/dw.pid -l /var/log/dw/dw.log
11 PIDFile=/run/dw/dw.pid
12 RemainAfterExit=yes
13 ExecStop=/usr/bin/pkill -F /run/dw/dw.pid
14 KillMode=mixed
15 KillSignal=SIGQUIT
16 TimeoutStopSec=5s
17 Nice=4
18 DynamicUser=yes
19 User=dopewars
20 Group=games
21 ReadOnlyPaths=/usr/bin
22 ReadWritePaths=/srv/dopewars
23 LogsDirectory=dw
24 RuntimeDirectory=dw
25 PrivateDevices=true
26 ProtectSystem=full
27 ProtectHome=true
28 NoNewPrivileges=true
29 MemoryDenyWriteExecute=true
30 CapabilityBoundingSet=CAP_NET_BIND_SERVICE
31 AmbientCapabilities=CAP_NET_BIND_SERVICE
33 [Install]
34 WantedBy=multi-user.target