← Back to team overview

touch-packages team mailing list archive

[Bug 1438967] Re: Running x11vnc via systemd inactive (dead) in Utopic, not Vivid

 

Martin Pitt, thanks for the quick follow up.

I wasn't aware of the systemd support status for <=Utopic. If I knew that, I would have just figured out how to do it via upstart. However, this is now documented in:
https://wiki.ubuntu.com/SystemdForUpstartUsers

Thank you for your understanding.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1438967

Title:
  Running x11vnc via systemd inactive (dead) in Utopic, not Vivid

Status in systemd package in Ubuntu:
  Fix Released

Bug description:
  This report is requesting a backport of I'm guessing systemd patches
  that are applied to and work in Vivid, to Utopic (and Trusty if
  applicable).

  What is expected to happen in Utopic is when one utilizes systemd to start x11vnc upon a reboot as per the below procedure it works like it does in Vivid: 
  sudo nano /etc/systemd/system/x11vnc.service
  #START
  [Unit]
  Description=Start x11vnc at startup.
  After=multi-user.target

  [Service]
  Type=simple
  ExecStart=/usr/bin/x11vnc -loop -auth guess -rfbauth /home/moniker/.vnc/passwd -rfbport 5900 -forever -nevershared -repeat

  [Install]
  WantedBy=multi-user.target
  #END

  sudo chmod u+x /etc/systemd/system/x11vnc.service
  sudo systemctl daemon-reload
  sudo systemctl start x11vnc.service
  sudo systemctl status x11vnc.service
  x11vnc.service - Start x11vnc at startup.
     Loaded: loaded (/etc/systemd/system/x11vnc.service; disabled)
     Active: active (running) since Tue 2015-03-31 20:02:05 CDT; 1s ago
   Main PID: 2876 (x11vnc)
     CGroup: /system.slice/x11vnc.service
             ├─2876 /usr/bin/x11vnc -loop -auth guess -rfbauth /home/moniker/.v...
             └─2877 /usr/bin/x11vnc -loop -auth guess -rfbauth /home/moniker/.v...

  Mar 31 20:02:06 macbookpro x11vnc[2876]: 31/03/2015 20:02:06 passing arg to ...0
  Mar 31 20:02:06 macbookpro x11vnc[2876]: 31/03/2015 20:02:06 passing arg to ...d
  Mar 31 20:02:06 macbookpro x11vnc[2876]: 31/03/2015 20:02:06 x11vnc version:...7
  Mar 31 20:02:06 macbookpro x11vnc[2876]: xauth:  unable to generate an autho...e
  Mar 31 20:02:06 macbookpro x11vnc[2876]: 31/03/2015 20:02:06 -auth guess: us...'
  Mar 31 20:02:06 macbookpro x11vnc[2876]: 31/03/2015 20:02:06 XOpenDisplay(""....
  Mar 31 20:02:06 macbookpro x11vnc[2876]: 31/03/2015 20:02:06 Trying again wi....
  Mar 31 20:02:06 macbookpro x11vnc[2876]: [21B blob data]
  Mar 31 20:02:06 macbookpro x11vnc[2876]: 31/03/2015 20:02:06 *** XOpenDispla....
  Mar 31 20:02:06 macbookpro x11vnc[2876]: 31/03/2015 20:02:06 *** Trying ":0"....
  Hint: Some lines were ellipsized, use -l to show in full.

  sudo nano /etc/default/grub

  Change:
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

  to:
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash init=/bin/systemd"

  save, close, execute:
  sudo update-grub && sudo reboot now

  and upon restarting, the x11vnc service is active.

  Instead, when one restarts, and checks the status it notes:
  x11vnc.service - Start x11vnc at startup.
     Loaded: loaded (/etc/systemd/system/x11vnc.service; disabled)
     Active: inactive (dead)

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: systemd 208-8ubuntu8.2
  ProcVersionSignature: Ubuntu 3.16.0-33.44-generic 3.16.7-ckt7
  Uname: Linux 3.16.0-33-generic x86_64
  ApportVersion: 2.14.7-0ubuntu8.2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Mar 31 20:01:31 2015
  InstallationDate: Installed on 2015-03-31 (0 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1438967/+subscriptions


References