Ahti Kitsik
Building develper tools. Python, Java, JavaScript.

writings about @ahtik

Fix Ubuntu Server Upstart init-checkconf error

By Ahti Kitsik, 20 Jan 2014

Upstart is the new mechanism in Ubuntu to manage some of the system services. Similar to systemd, sysvinit etc. When creating an upstart config there are two usability issues that can easily happen: "unknown job" for jobs that do exist and "cannot find dbus-launch".

If you have SERVICENAME.conf in /etc/init/ but still getting "Unknown job: SERVICENAME" then it is most likely a syntax error.

You can check the syntax using "init-checkconf /etc/init/SERVICENAME.conf"

But the problem with the command is that it can throw a somewhat confusing error:

ERROR: cannot find dbus-launch

This is due to the d-bus "issue" if you run server without X session == normal non-desktop servers.

Fix:

sudo apt-get install dbus-x11

No worries, installing dbus-x11 does not include the whole X11. It's just a small standalone x11 deps package.

 

@ahtik is on twitter!