mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
Add contrib/tor.service for use with systemd
This commit is contained in:
parent
0514bcd37c
commit
a42e81eea1
4
changes/bug8368
Normal file
4
changes/bug8368
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor features:
|
||||
- Add a systemd service file (tor.service) that can be installed by
|
||||
Linux distributions that make use of the systemd init daemon.
|
||||
Fixes bug 8368.
|
21
contrib/tor.service
Normal file
21
contrib/tor.service
Normal file
@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description = Anonymizing overlay network for TCP
|
||||
After = syslog.target network.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
Type = simple
|
||||
ExecStart = /usr/bin/tor -f /etc/tor/torrc
|
||||
ExecReload = /bin/kill -HUP ${MAINPID}
|
||||
KillSignal = SIGINT
|
||||
TimeoutSec = 30
|
||||
Restart = on-failure
|
||||
LimitNOFILE = 32768
|
||||
|
||||
# Hardening
|
||||
PrivateTmp = yes
|
||||
DeviceAllow = /dev/null rw
|
||||
DeviceAllow = /dev/urandom r
|
||||
InaccessibleDirectories = /home
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
Loading…
Reference in New Issue
Block a user