/srv/irclogs.ubuntu.com/2014/08/13/#upstart.txt

mlindsaySo registering a new session job appears to require more than just the presence of a file in $HOME/.config/upstart/myupstartjob.conf16:48
mlindsayTrue?16:48
mlindsayI’m running upstart 1.12.1 on trusty 14.0416:49
jodhmlindsay: no - that is sufficient. Is your job valid ('init-checkconf $HOME/.config/upstart/myupstartjob.conf')?16:49
mlindsays3-router.conf: syntax ok16:50
mlindsaythe reason I think it’s not running is ps aux | grep js returns nothing16:51
mlindsayand no corrosponding log file in /var/log/upstart16:51
mlindsayit’s all put together under a brand new user 16:51
mlindsayso I created the .config/upstart dirs myself16:52
jodhmlindsay: /var/log/upstart is for *system* jobs, not session-level jobs. For those, look in $HOME/.cache/upstart/myupstarjob.log.16:52
jodhmlindsay: .config/upstart must exist before the session init starts (inotify limitation).16:52
jodhmlindsay: if that isn't the case, you should be able to run 'start re-exec' (non-root) to have the job picked up.16:53
jodhmlindsay: (and avoid having to log out).16:53
mlindsayjodh: do I have to create the .cache dir?16:53
mlindsayjodh: thanks for helping out, and sorry for any stupid questions, but when I ‘start re-exec’ I get start: Unknown job: re-exec17:13
mlindsayon a more general note, I’m setting this up as a session job for security reasons only, Is that appropriate?  If not I’m working too hard17:22
jodhmlindsay: yes, you need to create the .cache dir if you want job output to be logged (it's not an error if it doesn't exist, but upstart will discard all job output).18:01
jodhmlindsay: are you running 'start re-exec' as a non-root user?18:01
mlindsayyes18:01
mlindsaynodejs-runner@ip-###-###-###-###:/home/ubuntu$ start re-exec18:03
mlindsaystart: Unknown job: re-exec18:03
mlindsayfunny thing is, with ~/.config/upstart/s3-router.conf present, service s3-router status says s3-router: unrecognized service18:08
=== mlindsay_ is now known as mlindsay
=== jhford_ is now known as jhford

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