mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-02-06 11:27:19 +00:00
VNC-239 Remove unused files in contrib/systemd
This commit is contained in:
parent
8e912d531e
commit
8e4efda0b5
@ -1,26 +0,0 @@
|
||||
#
|
||||
# /usr/lib/systemd/user/vncserver@.service
|
||||
#
|
||||
# 1. Switches for vncserver should be entered in ~/.vnc/config rather than
|
||||
# hard-coded into this unit file. See the vncserver(1) manpage.
|
||||
#
|
||||
# 2. Users wishing for the server to continue running after the owner logs
|
||||
# out MUST enable 'linger' with loginctl like this:
|
||||
# `loginctl enable-linger username`
|
||||
#
|
||||
# 3. The server can be enabled and started like this once configured:
|
||||
# `systemctl --user start vncserver@:<display>.service`
|
||||
# `systemctl --user enable vncserver@:<display>.service`
|
||||
|
||||
[Unit]
|
||||
Description=Remote desktop service (VNC)
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
|
||||
ExecStart=/usr/bin/vncserver %i
|
||||
ExecStop=/usr/bin/vncserver -kill %i
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Reference in New Issue
Block a user