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