summarylogtreecommitdiffstats
path: root/lokinet.service
blob: ec98886e486b47e19aa1ef7a2163a60cbbf8e31a (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
[Unit]
Description=Lokinet: Anonymous Network layer thingydoo
Wants=network-online.target
After=network-online.target
Wants=modprobe@tun.service
After=modprobe@tun.service

[Service]
Type=notify
WatchdogSec=30s
User=lokinet
SyslogIdentifier=lokinet
WorkingDirectory=/var/lib/lokinet
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/lokinet ./lokinet.ini
Restart=always
RestartSec=5s

# Hardening
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=strict
ProtectHostname=yes
ProtectKernelLogs=yes
ReadWritePaths=/var/lib/lokinet

[Install]
WantedBy=multi-user.target