move x11vnc systemd unit to user unit
This commit is contained in:
parent
0b4f24a052
commit
2b7296287f
@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=VNC Server for X11
|
||||
Requires=graphical.target
|
||||
After=graphical.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/x11vnc -noxdamage -rfbauth /var/run/vnc/passwd -display :0 -forever
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
13
home/user/.config/systemd/user/x11vnc.service
Normal file
13
home/user/.config/systemd/user/x11vnc.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=VNC Server for X11
|
||||
Requires=default.target
|
||||
After=default.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/bin/sleep 30
|
||||
ExecStart=/usr/bin/x11vnc -noxdamage -rfbauth ~/.vnc/passwd -display :0 -forever
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
x
Reference in New Issue
Block a user