[19:36] <Orm_Ancalagon> Evening all, if this is not the right place to ask i apologise and would be greatful for directions to it. I have a couple of questions regarding upstart order for initialising services if anyone could give a few pointers?
[19:38] <JanC> Orm_Ancalagon: any questions about upstart are welcome here, but the channel is very quiet generally
[19:39] <Orm_Ancalagon> That’s most kind
[19:39] <JanC> also, make sure to read the manpages & the cookbook
[19:39] <JanC> also, so /topic for a link to the mailing list
[19:39] <JanC> *see*
[19:39] <Orm_Ancalagon> Cool
[19:40] <Orm_Ancalagon> I am having a little difficulty with two services on Ubuntu server 14.04 and their start order
[19:41] <Orm_Ancalagon> I have an XMPP server called Prosody which I configured to use MYSQL for its database
[19:41] <Orm_Ancalagon> I changed it from SQL lite since I wanted to support password hashing
[19:41] <Orm_Ancalagon> Anyway
[19:41] <Orm_Ancalagon> On first boot, I think prosody gets started before MYSQL and hence fails 
[19:42] <Orm_Ancalagon> There’s a error log noting “can’t connect to MYSQL database"
[19:42] <JanC> sounds like that, yeah
[19:42] <Orm_Ancalagon> However, once the sytem is booted, restarting prosody spools up just fine
[19:43] <Orm_Ancalagon> Is there a way to make Prosody check MYSQL is up and running before starting?
[19:43] <Orm_Ancalagon> Or perhaps a delay I could set against it
[19:43] <JanC> how is prosody started right now?
[19:44] <Orm_Ancalagon> It’s daemonised and configured to start on boot following the apt-get install
[19:45] <Orm_Ancalagon> I’ve had a read through the cookbook, but I am quite newbish at this level
[19:45] <Orm_Ancalagon> And must admit i’ve never really needed to poke at init before
[19:46] <JanC> I mean, is it started by an upstart config or using a sysvinit script?
[19:48] <JanC> is there a /etc/init/prosody.conf ?
[19:48] <Orm_Ancalagon> you know what i’m being dum
[19:49] <Orm_Ancalagon> the /etc/init is upstart and /etc/init.d is sysvinit isn’t it
[19:49] <Orm_Ancalagon> there’s no prosody.conf in /etc/init but it is in /etc/init.d/prosody
[19:50] <JanC> okay, so that complicates things a bit, I guess  :)
[19:50] <Orm_Ancalagon> Heh
[19:51] <Orm_Ancalagon> I note mysql actually appears in both /etc/init and /etc/init.d
[19:53] <Orm_Ancalagon> So does Ubuntu combine by sysvinit scripts and upstart for starting services then?
[19:53] <JanC> the mysql one in init.d is not a real sysvinit script (it's there for compatibility with some other software, I guess)
[19:53] <Orm_Ancalagon> Ah ok
[19:54] <JanC> and upstart can start/stop/etc. sysvinit scripts for backwards compatibility
[19:54] <JanC> like the prosody one
[19:54] <Orm_Ancalagon> ah that’s why a sudo service restart prosody works 
[19:54] <Orm_Ancalagon> I see
[19:57] <JanC> I'm not 100% sure what is the "right way" to make a sysvinit script wait on mysql though...
[19:58] <Orm_Ancalagon> Yeah I wonder, given the mixture, if it might be possible to set a delay on sysvinit start for prosdy 
[19:58] <Orm_Ancalagon> in order to avoid complication
[20:01] <JanC> maybe best would be to make a prosody.conf for it  :)
[20:01] <Orm_Ancalagon> wow is that possible?
[21:58] <Orm_Ancalagon> Jan thanks for you help, it was most appreciated, i’m going to have a play at writing a .conf
[21:58] <Orm_Ancalagon> Hope you have a great day