summaryrefslogtreecommitdiff
path: root/.config/systemd/user/vncserver@.service
blob: 2cabf4f057f378aab964b87d6799e4c73c0f43ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=VNC virtual desktop %I
Conflicts=x0vncserver@%i.service

[Service]
Type=simple
Restart=always

ExecStart=/usr/bin/env vncserver -fg %I
ExecStop=/usr/bin/env vncserver -kill %I
ExecStopPost=/bin/rm /tmp/.X%I-lock /tmp/.X11-unix/X%I

[Install]
WantedBy=default.target