/srv/irclogs.ubuntu.com/2009/09/30/#upstart.txt

=== robbiew-afk is now known as robbiew
=== Keybuk_ is now known as Keybuk
lcapriottihi, what would be the best option to start an interactive script at boot with upstart?15:39
lcapriottiie something similar to 'su -c "/usr/bin/ascript" -l' ?15:40
sadmac2lcapriotti: you would need to run it with the console output stanza15:41
lcapriotti... any online examples ?15:42
lcapriottitks btw15:42
sadmac2start on startup15:43
sadmac2console output15:43
sadmac2exec /usr/bin/ascript15:43
sadmac2^^there's an example :)15:43
lcapriotticool, it works :) tks a lot15:59
lcapriottinow for a more advanced one: what if I need to stop usplash before the script?16:02
sadmac2lcapriotti: you would add:16:03
sadmac2pre-start exec /whatever/thing/controls/usplash --stop16:03
sadmac2or something to that effect16:03
sadmac2not an Ubuntu guy ;)16:03
lcapriottinice, seems easy once you know what you are doing ;)16:04
Keybukor add "on starting your-script" to /etc/init/usplash.conf ;)16:06
Keybukpre-start exec stop usplash16:06
Keybukwould work too16:06
lcapriottiI prefer not to modify a system script, I'll go for "pre-start exec stop usplash"16:08
lcapriottitks a million to both of you!16:09
sadmac2np16:09
=== Md is now known as Guest82827
=== Guest82827 is now known as Md
milanbvKeybuk: Hi again!20:29
milanbvI've finally come to working on upstart support in the stb without having had the occasion to talk with you about it :-)20:30
milanbv...and sadly it doesn't seem we share the same availability hours20:32
Keybukstb?20:37
milanbvsystem-tools-backends -;)20:39
Keybukah right20:39
milanbvhave you seen bug 435935?20:39
Keybukno, I haven't seen that bug20:40
milanbvthat's basically about implementing a rough upstart support, so that services-admin can be shipped in Karmic without breaking things20:41
milanbvI have a patch that works with init.d scripts in Karmic (not upstart jobs yet)20:42
milanbvI'd need some feedback to know if that's good enough that I can release the stb 2.8.2, so that it can go into Karmic20:42
KeybukKarmic is almost past Beta20:47
milanbvyeah, but that one kind of problematic20:49
milanbvwe can't break services-admin more than it is now :-)20:49
milanbvsorry, my network connection is really bad20:51
milanbv(public WiFi, not even allowed to use IRC directly)20:51
milanbvdid you say something since 21:48?20:51
ionHi Keybuk :-)21:34
Keybukhi21:40
ionIs there a way to subscribe to all current and future Upstart blueprints in Launchpad?22:18
Keybukprobably not22:21
Keybukblueprint is very underdeveloped22:21
KeybukI don't even use it now22:21
=== robbiew is now known as robbiew-afk
ionAny interesting decisions/news/something from LPC? :-)23:42
ionThe most recent news at the linuxplumbersconf.org: LPC Registration opens 7:30AM PT Wednesday (come early!)23:43
Keybukhaha23:44
Keybukno, it wasn't a great conf this time23:44
Keybukcasey and I hung out a bit23:44
Keybukbounced a few ideas23:44
ionHas anyone came up with a good name for the ‘like while, but start on starting and stop on stopped’ stanza for upstart+1 yet? :-)23:45
Keybuknope23:45
Keybukbut I am going to get rid of pre-start, post-stop, etc. from the state machine :p23:45
ionWhy?23:46
Keybukbecause we don't need them anymore23:46
Keybukthe blocking stuff added to events really gets rid of the need23:46
Keybukso, let's say we simplify a job down to just a process, and events23:47
Keybukwe have23:47
Keybuk [ pre-start event ] [ post-start event ] [ pre-stop event ] [ post-stop event ]23:47
Keybuk                     [ process being run here              ]23:47
Keybukhow would we do a pre-start script?23:47
Keybukeasy!23:47
Keybuk  on job pre-start23:47
Keybuk  task23:48
Keybuk  exec ...23:48
Keybukthat would block the pre-start event, so block the process being run ;)23:48
Keybukwhich is exactly what we want23:48
ionIn that case, it would be nice to be able to put multiple job definitions to a single file, so you’d have the stuff that e.g. does mkdir -p /var/run/dbus in the same file as the stuff that runs dbus.23:49
ionAh, i might have misunderstood. It would still be possible to have pre-start, post-stop stuff in the job definition, it would be just an abstraction that works based on those events?23:50
Keybukexactly!23:50
Keybukeven better, it'd be possible to put *any* custom sub-job in the definition23:51
Keybukif we make that really easy, and work well23:51
sadmacKeybuk: the only downside is the hideous things I know people will do with this :)23:51
Keybuksadmac: they can do them already23:51
sadmacKeybuk: on started pre-start job23:51
Keybukjust in separate job files ;)23:51
Keybuksadmac: I kinda like that <g>23:51
Keybuk  while apache pre-start23:51
Keybuk(while the apache pre-start script is running)23:52
ion:-)23:52
sadmacthat one's ok23:52
sadmacactually there'd be no started pre-start, since that would imply a started started, which would imply a started started started...23:52
Keybukor pre-start implies pre-start pre-start implies pre-start pre-start pre-start23:53
Keybuk  on portmap pre-start pre-start pre-start pre-start23:53
Keybukwe should rename that to "turtle"23:53
ion‘while’ for ‘start on started, stop on stopping’; the Old English word ‘hwile’ for ‘start on starting, stop on stopped’23:54
sadmacKeybuk: rename which?23:55
Keybuk  on portmap turtle turtle turtle turtle turtle turtle turtle turtle23:55
Keybukturtles all the way!23:55
sadmacgdb.fail++23:55
sadmacKeybuk: ah23:56
ion‘surrounding’?23:56
sadmacion: you mean as a name for "before"?23:56
ionI’m not sure i like ‘before’. It only means, well, before, which is only the starting point.23:57
sadmacion: me neither, we've been trying to rename it for months :)23:57
sadmacKeybuk: actually, we may not need before anymore with the new model23:58
sadmacKeybuk: while dbus / while dbus running23:58
Keybuksomething like that yeah23:59

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