summaryrefslogtreecommitdiff
blob: bf5d7811f82305c3f67b3dded48869b28c64ef23 (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
[Unit]
Description=onionrouter
After=network.target tor.service
Before=postfix.service

[Service]
ExecStart=/usr/bin/onionrouter
Restart=on-failure
RestartSec=10s
DynamicUser=true
PrivateDevices=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectHostname=true
RestrictRealtime=true
MemoryDenyWriteExecute=true

[Install]
WantedBy=default.target