summarylogtreecommitdiffstats
path: root/peerunityd-tor@.service
diff options
context:
space:
mode:
Diffstat (limited to 'peerunityd-tor@.service')
-rw-r--r--peerunityd-tor@.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/peerunityd-tor@.service b/peerunityd-tor@.service
new file mode 100644
index 000000000000..4b2089568468
--- /dev/null
+++ b/peerunityd-tor@.service
@@ -0,0 +1,23 @@
+[Unit]
+Description=Peerunity daemon - Tor
+After=network.target
+Requires=tor.service
+Conflicts=peerunityd@%i.service
+Conflicts=peerunityd-tor@%i.service
+Conflicts=peerunity@$%i.service
+
+[Service]
+User=%i
+Group=users
+Type=simple
+Restart=on-failure
+RestartSec=15
+ExecStart=/usr/bin/peerunityd -proxy=127.0.0.1:9050
+## security
+PrivateTmp=true
+PrivateDevices=true
+ProtectSystem=full
+NoNewPrivileges=true
+
+[Install]
+WantedBy=default.target \ No newline at end of file