/srv/irclogs.ubuntu.com/2014/04/07/#upstart.txt

marianogg9hi guys, just a quick question. I need to start a job every time the vm is restarted, I've added "start on startup" to the script but it doesn't start when the vm starts17:10
marianogg9is there something I'm missing?17:10
xnoxmarianogg9: the job is in the VM? And what do you mean restarted - is it rebooted, or suspended/resumed?17:13
xnoxor is the job on the host?17:14
marianogg9xnox: this upstart script is monitoring a lumberjack service (log shipping service). When the vm where it's located is rebooted or stop/started, it doesn't start automatically17:15
xnoxmarianogg9: can you pastebin the job?17:15
marianogg9sure17:15
xnoxmarianogg9: start on startup, might be way too early for it - no filesystems are mounted rw yet potentially.17:16
marianogg9xnox: https://gist.github.com/marianogg9/1002441117:18
marianogg9then which stanza is more suitable?17:18
xnoxmarianogg9: use : start on runlevel [2345]17:22
marianogg9instead of startup you mean?17:23
FunnyLookinHatIs there an event automatically emitted / generated upon completion of any upstart task?  i.e. I want to do something once cups.conf has run it's post-start script 17:47
FunnyLookinHatall I can think to do is edit cups.conf to emit a special event that I listen for and then try to work with that17:47
FunnyLookinHatbut I don't want to edit that file  :)17:47
FunnyLookinHatAh - you can just "start on stopped cups RESULT=ok"18:26
xnoxFunnyLookinHat: yes, that =)20:14
FunnyLookinHatxnox, :)  I was getting a bit confused - what I really wanted was "start on started cups RESULT=ok" ... but same difference though20:15
xnoxFunnyLookinHat: no need for result=ok in that case. "start on started cups" means cups got successfully started and is running.20:15
xnoxFunnyLookinHat: if it fails to start "started" event is not emitted.20:16
FunnyLookinHatxnox, slick thx20:16

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