From 2030e810a5cfd4d3ff6e0f8930560c96f2990eb2 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 4 Nov 2012 01:49:10 -0700 Subject: Sun Nov 4 01:48:41 PDT 2012 --- community/tightvnc/vncserver.service | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 community/tightvnc/vncserver.service (limited to 'community/tightvnc/vncserver.service') diff --git a/community/tightvnc/vncserver.service b/community/tightvnc/vncserver.service new file mode 100644 index 000000000..b64e729a6 --- /dev/null +++ b/community/tightvnc/vncserver.service @@ -0,0 +1,29 @@ +# The vncserver service unit file +# +# 1. Copy this file to /etc/systemd/system/vncserver@:.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@:.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= +# Clean any existing files in /tmp/.X11-unix environment, especially useful for VMs +ExecStartPre=-/usr/bin/vncserver -kill %i +ExecStart=/usr/bin/vncserver %i +ExecStop=/usr/bin/vncserver -kill %i + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf