Alex Rivera | Logout

upstart logging output enabled

Asked 2010-12-02T13:10:35.220
31

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
Edit
Report

1 Answer

8

initctl log-priority info logs events, but ignores the program output.

If the program output is important to you, I think the complementary solution is to use logger in your init script:

script
    myawesomeprog 2>&1 | logger -t myawesomeprog
end script

Because it's better to use syslog than manually manage /var/log, like http://upstart.ubuntu.com/wiki/Debugging suggests (in 08/2012).

answered 2012-08-02T20:15:07.793

Your Answer