/srv/irclogs.ubuntu.com/2011/10/06/#upstart.txt

Slapshot|LinuxHi, I am having trouble getting my upstart to run at boot. Any help would be great.01:26
pmjdebruijnjhunt: we're using a heavily customized setup08:42
pmjdebruijnwhere we synchronize configurations08:42
pmjdebruijnin an upstart job08:42
pmjdebruijnbut parallization of the rc sysv init seems to be problematic08:42
pmjdebruijnin the past I just upstartified the packages and be done with it08:42
pmjdebruijnbut for complexer init scripts this is well a pain and very error sensitive08:42
pmjdebruijnwe're actually doing a migration to ubuntu (from debian)08:43
pmjdebruijnbut in our custom setup, upstart seems to make this very painful08:43
jhunt??? I don't understand what the problem is? If you have specifics, please can you post to the mailing list or raise bugs if you think you've found one?08:47
pmjdebruijnit's not really a bug08:48
pmjdebruijnideally my problem would be solved if I could depend the sysv rc upstart job on another upstart job08:53
pmjdebruijnbut if I do that my whole init breaks08:53
pmjdebruijnI tried that before08:53
pmjdebruijnsystem won't reboot anymore08:53
pmjdebruijnI guess I might mail to the mailing list if I have time to workout my case09:03
jhuntare you saying that existing sysv scripts fail to run correctly when started by upstart?09:04
=== Md_ is now known as Md
pmjdebruijnno sorry09:06
pmjdebruijnsysv works09:06
pmjdebruijnbut it runs to soon09:06
pmjdebruijnit should only run _after_ another upstart job09:07
pmjdebruijnwhich synchronizes the local configuration from a remote host09:07
pmjdebruijnbut it's being parallized09:07
pmjdebruijnso stuff isn't starting because there is no configuration yet09:07
pmjdebruijnwe're talking about network bootend hosts he09:07
pmjdebruijnhere*09:07
jhuntyou really need to migrate your sysv job to upstart then. There is a way to do what you want though...09:09
jhunt1) disable the sysv job by removing the sym links.09:09
pmjdebruijnyeah09:10
pmjdebruijnit's just that the sysv script is _very_ complex09:10
jhunt2) create an upstart job "wrapper" for it that does "start on event-i-need" and "exec /etc/init.d/my-sysv-service"09:10
pmjdebruijnoh09:10
pmjdebruijnlol09:10
pmjdebruijnthat's an idea09:10
pmjdebruijnit's a horrible hack09:10
pmjdebruijnbut that would work though09:10
pmjdebruijnfor nagios-nrpe I created a real upstart job09:11
pmjdebruijnwhich is just requires a trivial patch09:11
pmjdebruijnbut your suggestion would work for everything09:11
pmjdebruijnjhunt: thanks for that suggestion09:15
pmjdebruijnjhunt: btw, just implemented the wrappers12:55
pmjdebruijnjhunt: it seems to work nicely12:55
pmjdebruijnjhunt: thanks for the tip12:55
jhuntnp. of course you'll need to ensure that the sysv sym links don't get re-instated if the packages get updated say.12:57
pmjdebruijnthat's not an issue12:57
pmjdebruijnit's a ramdisk based setup12:58
pmjdebruijnso it's static12:58
pmjdebruijneverytime we update the ramdisks, we also have a QA phase (which should catch that)12:58
=== Alien_Freak is now known as csgeek

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