/srv/irclogs.ubuntu.com/2012/09/25/#upstart.txt

=== zz_Kiall is now known as Kiall
six86hi12:59
six86one question to upstart: i want a job that starts other jobs for convenience, but it doesnts work. Can someone help?13:00
SpamapSsix86: perhaps you could share the job as you have it now?13:07
six86i have around 5 jobs, all part of the whole system. to start this jobs i want one that starts them all13:09
six86http://pastebin.com/LshrGktj13:10
six86it seems as if the jobs are executed, but i cannot check status nor stop them bz name13:14
six86by name13:14
SpamapSsix86: start on startup is wrong, btw13:18
SpamapSsix86: that event is emitted before filesystems are mounted, before networking is up..13:18
six86the start on is currentlz not important and will be changed later. The interesting question is, if i can start multiple services in one job and the track them individually with start/stop/status 13:23
SpamapSsix86: ok, you're kind of doing it backwards13:38
SpamapSsix86: instead of putting a bunch of starts in that job...13:39
SpamapSsix86: (which should work)13:39
SpamapSsix86: how about changing the other jobs to 'start on starting meta-aggregate-job-name'13:39
SpamapSsix86: and then 'stop on stopping meta-aggregate-job-name'13:39
SpamapSsix86: then you don't even need a script section13:39
SpamapSsix86: it just becomes a job to help start/stop them together13:40
=== Kiall is now known as zz_Kiall
=== zz_Kiall is now known as Kiall
six86thats a good idea, thx. I will try that tomorrow13:57
cubicoolIs there a way in upstart to run a curses-based application before lightdm ever starts? I realize I need to make my curses app be a dependency of lightdm, but I can't actually get my upstart job to "grab the foreground", so to speak.17:26
cubicoolI know everyone will say "why", but I need to accomplish this in a corporate setting; a few pre-X functions must be executed on the employees first boot.17:27
=== Kiall is now known as zz_Kiall
benzittlauhey, I'm trying to get the PID of the current process inside a pre-stop block17:45
benzittlaui17:45
benzittlauis there a straightforward way to get that without having to write the PID to a file?17:45
SpamapSbenzittlau: status17:48
SpamapSbenzittlau: it is every easy to parse17:48
SpamapScubicool: if you want it to grab the actual console, you need to make it 'console owner'17:49
SpamapScubicool: and you have to make *sure* it is the *only* console owner17:49
benzittlauSpamapS: happen to know of any snippet for parsing out the PID?  I'm sure I could figure it out, but it would save me some time17:50
SpamapScubicool: 'start on starting lightdm' should be enough, but you may have to also add in some stuff about plymouth to make sure you get the console17:50
SpamapSbenzittlau: x=$(status); pid=${x##*, process}17:53
benzittlauthanks!17:53
=== zz_Kiall is now known as Kiall
=== Kiall is now known as zz_Kiall

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