summaryrefslogtreecommitdiffstats
path: root/abs/extra/tigervnc/vncserver.service
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-01-23 17:39:50 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-01-23 17:39:50 (GMT)
commita9c0f93eebcd9a598ab934531cec5c0aa9c1bbf8 (patch)
tree4e25dfa1bbff34473a7f6d0df5d070a8a0c12a34 /abs/extra/tigervnc/vncserver.service
parent193fd67c9e8cfbc4704f08655fa5bc61d5cbb457 (diff)
downloadlinhes_pkgbuild-a9c0f93eebcd9a598ab934531cec5c0aa9c1bbf8.zip
linhes_pkgbuild-a9c0f93eebcd9a598ab934531cec5c0aa9c1bbf8.tar.gz
linhes_pkgbuild-a9c0f93eebcd9a598ab934531cec5c0aa9c1bbf8.tar.bz2
tigervnc: update to 1.6.0
Diffstat (limited to 'abs/extra/tigervnc/vncserver.service')
-rw-r--r--abs/extra/tigervnc/vncserver.service29
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/extra/tigervnc/vncserver.service b/abs/extra/tigervnc/vncserver.service
new file mode 100644
index 0000000..0c257b3
--- /dev/null
+++ b/abs/extra/tigervnc/vncserver.service
@@ -0,0 +1,29 @@
+# The vncserver service unit file
+#
+# 1. Copy this file to /etc/systemd/system/vncserver@:<display>.service
+# 2. Edit User=
+# ("User=foo")
+# 3. Edit and vncserver parameters appropriately
+# ("/usr/bin/vncserver %i -arg1 -arg2 -argn")
+# 4. Run `systemctl --system daemon-reload`
+# 5. Run `systemctl enable vncserver@:<display>.service`
+#
+# DO NOT RUN THIS SERVICE if your local area network is untrusted!
+#
+# See the wiki page for more on security
+# https://wiki.archlinux.org/index.php/Vncserver
+
+[Unit]
+Description=Remote desktop service (VNC)
+After=syslog.target network.target
+
+[Service]
+Type=forking
+User=
+
+ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i >/dev/null 2>&1 || true'
+ExecStart=/usr/bin/vncserver -fg %i
+ExecStop=/usr/bin/vncserver -kill %i
+
+[Install]
+WantedBy=multi-user.target