mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
30 lines
849 B
SYSTEMD
30 lines
849 B
SYSTEMD
|
# 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=
|
||
|
# 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
|