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