I am using archlinux version 3.10.27-1-ARCH on my remote PC and I would like it to launch x11vnc server on successful bootup. Though i can start the x11vnc server manually, I am having trouble starting it up automatically. The configuration of /etc/systemd/system/x11vnc.service is as follows
[Unit]
Description=VNC Server for X11
Requires=graphical.target
After=graphical.target
[Service]
ExecStart=/usr/bin/x11vnc -display :0 -nopw
The status of the service using command:
systemctl status x11vnc
x11vnc.service - VNC Server for X11
Loaded: loaded (/etc/systemd/system/x11vnc.service; enabled)
Active: inactive (dead)
And the dBus output of command:
dmesg|grep x11vnc
[ 5.467201] systemd[1]: Found dependency on x11vnc.service/start
[ 5.467285] systemd[1]: Breaking ordering cycle by deleting job x11vnc.service/start
[ 5.467335] systemd[1]: Job x11vnc.service/start deleted to break ordering cycle starting with graphical.target/start
I do feel from the dmesg output there is a cyclic dependency, but I am not able to understand what.