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