/srv/irclogs.ubuntu.com/2013/05/23/#upstart.txt

vanguarde9Hello does anybody have experience with upstart and red hat based distros ? Is it posible to start automaticaly upstart service after start of systemV service , without addig any code (etc. initctl emit sometnig) into systemV script ?07:28
vanguarde9I mean for example Centos as Red Hat based linux distro07:29
=== canal is now known as joaojeronimo
jgornickHey guys, I'm running Ubuntu 12.04 and for some reason, I can't get initctl to recognize my job conf file I've created in /etc/init. Thoughts?15:51
xnoxjgornick:  init-checkconf /etc/init/myjob.conf ?15:52
xnoxdoes that say anything useful?15:53
jgornickxnox: ERROR: failed to ask Upstart to check conf file15:53
jgornickxnox: sudo?15:54
jgornickNope :)15:54
jodhjgornick: are you running at the console? If so, you'll need to start a dbus-daemon for init-checkconf to work.15:55
jodhjgornick: dbus autostart changed its behaviour. newer init-checkconf versions handle this.15:56
jgornickjodh: Yes, it's a headless server. How do I start the dbus-daemon?15:56
jgornickjodh: To be specific it's the 12.04 Amazone AMI.15:56
jgornicks/Amazone/Amazon15:56
jodhjgornick:  eval `dbus-launch --sh-syntax`15:56
jgornickThe program 'dbus-launch' is currently not installed.  You can install it by typing: sudo apt-get install dbus-x1115:57
jgornickShall I do that?15:57
jodhjgornick: if you are able to. if not, just pastebin your job so we can see it15:57
jodhjgornick: ... or copy the job to a desktop system and run init-checkconf there of course :)15:57
jgornickjodh: I'll get a copy of the conf file.15:58
jgornickjodh: https://gist.github.com/jgornick/32e8e17c75d64cbacc3716:09
jodhjgornick: the job is valid. I wonder if /etc is on some sort of overlay filesystem maybe?16:13
jgornickjodh: I can't imagine. It is the basic Ubuntu 12.04 Server instance offered from Amazon with official support from Canonical.16:15
jodhjgornick: 'mount|grep overlay' ?16:16
jgornickNothing echo'd/16:16
jodhjgornick: hmm. when you say initctl does not recognise the job, what do you mean exactly?16:21
jgornickjodh: sudo initctl status bulkqr initctl: Unknown job: bulkqr16:22
jgornickjodh: That's after I do a sudo initctl reload-configuration16:22
jgornickJust to make sure it's loading in the conf file.16:22
jodhjgornick: try "sudo initctl log-priority debug; touch /etc/init/yourjob.conf" and look at dmesg / /var/log/syslog to see what upstart messages you get relating to that job.16:24
jodhjgornick: that'd be "sudo touch" :)16:25
jgornickjodh: We're getting somewhere: https://gist.github.com/jgornick/32e8e17c75d64cbacc37#file-gistfile2-txt16:26
jodhjgornick: odd. it's complaining about line 24 and the file only has 23 lines. Have you got some stray extended characters in that job file maybe? \r rather than \n? if not, try commenting out each stanza/block and seeing where the problem lies.16:34
jgornickjodh: That was it.16:37
jgornickjodh: Some bad character or whatever. Probably a copy paste through terminal that made it happen.16:37
jgornickjodh: Thanks for helping debug that.16:38

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!