You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
781 B
34 lines
781 B
3 years ago
|
[Unit]
|
||
|
Description=Anonymizing overlay network for TCP (multi-instance-master)
|
||
3 years ago
|
After=syslog.target network.target nss-lookup.target
|
||
3 years ago
|
|
||
|
[Service]
|
||
|
Type=notify
|
||
3 years ago
|
NotifyAccess=all
|
||
3 years ago
|
ExecStartPre=+/bin/chown USER:USER /var/lib/tor
|
||
3 years ago
|
ExecStartPre=TORPATH -f TORRCPATH --verify-config
|
||
|
ExecStart=TORPATH -f TORRCPATH
|
||
|
|
||
|
ExecReload=/bin/kill -HUP ${MAINPID}
|
||
3 years ago
|
KillSignal=SIGINT
|
||
3 years ago
|
TimeoutSec=60
|
||
|
Restart=on-failure
|
||
|
WatchdogSec=60
|
||
|
LimitNOFILE=32768
|
||
3 years ago
|
Group=USER
|
||
|
|
||
3 years ago
|
# Hardening
|
||
|
PrivateTmp=yes
|
||
|
PrivateDevices=yes
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=no
|
||
|
ReadOnlyDirectories=/
|
||
|
ReadWriteDirectories=-/var/lib/tor
|
||
|
ReadWriteDirectories=-/var/log/tor
|
||
|
ReadWriteDirectories=-HOME/.tor
|
||
|
NoNewPrivileges=no
|
||
|
CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE CAP_DAC_READ_SEARCH
|
||
3 years ago
|
|
||
|
[Install]
|
||
3 years ago
|
WantedBy=multi-user.target
|