blob: 11ce1bf6314b6e943d62a53fda593f80bf9ac729 (
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
36
|
[Unit]
Description=Wakapi
StartLimitIntervalSec=400
StartLimitBurst=3
[Service]
Type=simple
User=wakapi
Group=wakapi
WorkingDirectory=/var/lib/wakapi
ExecStart=/usr/bin/wakapi -config /etc/wakapi/config.yml
# Creates /run/wakapi, useful to place your socket file there
RuntimeDirectory=wakapi
Restart=on-failure
RestartSec=90
# Security hardening
PrivateTmp=true
PrivateUsers=true
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
PrivateDevices=true
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ProtectClock=true
RestrictSUIDSGID=true
ProtectHostname=true
ProtectProc=invisible
[Install]
WantedBy=multi-user.target
|