upstart logging output enabled

samb picture samb · Dec 2, 2010 · Viewed 38.5k times · Source

Except doing explicit logging instructions like suggested in http://upstart.ubuntu.com/wiki/Debugging, is there a way to enable output of what is happening with upstart?

  • What event is raised
  • What service changed its status (started/stopped/dead)
  • What signal were emmited
  • what output a service produced while starting

Answer

samb picture samb · Dec 3, 2010

Ok, I've found one way to get it :

$ sudo initctl log-priority        # gives the actual (default) logging level
$ sudo initctl log-priority --help # gives available logging levels
$ sudo initctl log-priority info # is enough to get :
$ tail -f /var/log/syslog        # - log of upstart events
$ tail -f /var/log/boot.log      # - log of services output