Logs for jdev

Show join/part/nick changes:

[00:00:13] * Tobias joined the chat.
[00:05:27] * Alex left the chat.
[00:17:57] * Treebilou left the chat.
[00:19:46] * naw left the chat.
[00:47:15] * Tobias left the chat.
[01:47:39] * mathieui left the chat.
[01:48:00] * mathieui joined the chat.
[01:59:14] * Xificurk joined the chat.
[02:00:32] * Hermitifier left the chat.
[02:25:36] * Zash joined the chat.
[02:58:30] * darkrain left the chat.
[04:59:17] * darkrain joined the chat.
[05:16:06] * darkrain left the chat.
[05:16:06] * darkrain joined the chat.
[05:47:27] * darkrain_ left the chat.
[05:47:27] * darkrain left the chat.
[05:49:56] * darkrain joined the chat.
[05:49:56] * darkrain_ joined the chat.
[05:51:32] * darkrain_ left the chat.
[05:51:32] * darkrain left the chat.
[05:53:21] * darkrain_ joined the chat.
[05:53:38] * darkrain joined the chat.
[07:27:38] * scippio left the chat.
[08:54:02] * harrykar left the chat.
[09:08:46] * harrykar joined the chat.
[09:30:54] * Tobias joined the chat.
[09:54:37] * dwd joined the chat.
[10:12:18] * Zash left the chat.
[10:19:02] * Treebilou joined the chat.
[10:40:40] * naw joined the chat.
[11:25:23] * naw left the chat.
[11:27:53] * Alex joined the chat.
[11:29:03] * flosse joined the chat.
[11:29:19] * flosse left the chat.
[11:59:12] * dwd left the chat.
[12:00:09] * flosse joined the chat.
[12:01:19] <flosse> hey! does someone know how I can determine in a startup script if ejabberd is ready or not?
[12:01:52] <Kev> Having it log in over XMPP is the only way I can think of to check.
[12:02:26] <Alex> getting the sttus with ejabberdctl ?
[12:02:39] <Kev> Does that work?
[12:03:01] <Kev> I'm thinking back to when we ran it on jabber.org, and there was a few minutes after startup before it'd serve XMPP clients.
[12:03:03] <flosse> so I have to parse the output string?
[12:03:05] <Alex> I did that quite often on jabber.org when we were running ejabberd
[12:03:14] <Alex> nd I think it worked quite well
[12:05:12] <flosse> so how do you do it?
[12:09:56] <Alex> we had scripts on jabber,org, I just used them. But IIRC we checked the status of the node with ejabberdctl and additonaly a telnet request on 5222
[12:10:15] <Kev> Our scripts didn't used to work.
[12:10:24] <Kev> Actually, no.
[12:11:09] <Kev> The worked for detecting when it was down, yes.
[12:11:16] <Kev> But that was the external telnet script that did that.
[12:20:25] * Zash joined the chat.
[12:27:47] <flosse> what about: start = -> exec "ejabberdctl status", (err, out)-> down = out.split('\n')[0].indexOf('nodedown') > -1 if down setTimeout start, 200 else setTimeout startComponents, 800 exec "ejabberdctl start", (err, out)-> if err? console.error err else start()
[12:29:18] <Alex> The problem is what Kev mentioned, when ejabberd crashes we have seen very weird stuff and ejabberdctl failed to report the corect status
[12:29:33] <Kev> And during startup, I think, it reports the wrong status doesn't it?
[12:29:43] <Kev> Doesn't it report the node is running before it's finished starting up?
[12:30:03] <Alex> Kev: yes it does
[12:30:07] <flosse> correct! This is why I have to wait 800ms
[12:30:19] <Kev> flosse: Ah, at least you have a small server.
[12:30:27] <Alex> one a big deployment it can take several minutes to startup
[12:30:32] <Kev> (On jabber.org it took about 10 minutes to startup)
[12:30:38] <Alex> on a small personal server this will work fine
[12:30:48] <flosse> of course... this is just a dirty trick for my own server
[12:31:12] <flosse> if you have a better solution just tell me ;-)
[12:31:29] <Kev> The foolproof solution is to check whether you can log in.
[12:32:02] <Alex> yes
[12:32:35] <Kev> I think you could pick any number of libraries and write a ten line script to log in and exit with a success code if it can and an error code otherwise.
[12:42:47] <flosse> yup, thats the way it works now :)
[12:42:52] <flosse> thanks!
[13:01:43] * xnyhps left the chat.
[13:02:26] * xnyhps joined the chat.
[13:55:52] * Florob joined the chat.
[14:07:20] * naw joined the chat.
[14:37:21] * flosse left the chat.
[14:45:58] * Vincent V. left the chat.
[14:46:51] * Vincent V. joined the chat.
[14:55:19] * Kev left the chat.
[15:26:51] * naw left the chat.
[15:44:03] * flosse joined the chat.
[15:44:06] * flosse left the chat.
[16:07:41] * gigam left the chat.
[16:28:31] * lastsky joined the chat.
[16:49:01] * flosse joined the chat.
[16:49:06] * flosse left the chat.
[17:00:14] * Asterix joined the chat.
[17:08:22] * scippio joined the chat.
[17:17:01] * flosse joined the chat.
[17:18:42] * lastsky left the chat.
[17:19:01] * lastsky joined the chat.
[17:21:01] * flosse left the chat.
[17:24:35] * lastsky left the chat.
[17:26:49] * Asterix left the chat.
[17:29:35] * flosse joined the chat.
[17:30:50] * flosse left the chat.
[17:47:17] * flosse joined the chat.
[17:52:42] * flosse left the chat.
[17:53:54] * Florob left the chat.
[17:53:55] * Florob joined the chat.
[17:56:40] * Asterix joined the chat.
[17:57:57] * scippio left the chat.
[18:01:08] * harrykar left the chat.
[18:02:16] * harrykar joined the chat.
[18:03:10] * naw joined the chat.
[18:15:32] * codora left the chat.
[18:26:17] * naw left the chat.
[18:34:02] * harrykar left the chat.
[18:38:11] * harrykar joined the chat.
[19:25:17] * naw joined the chat.
[19:33:37] * scippio joined the chat.
[19:33:43] * Tobias left the chat.
[19:34:01] * Tobias joined the chat.
[19:51:20] * b-seize joined the chat.
[19:54:48] * victor joined the chat.
[20:16:05] * b-seize left the chat.
[20:16:22] * victor left the chat.
[20:16:25] * victor joined the chat.
[20:17:05] * Hermitifier joined the chat.
[20:18:44] * Asterix left the chat.
[20:20:41] * Asterix joined the chat.
[20:21:47] * mathieui left the chat.
[20:22:14] * mathieui joined the chat.
[20:27:14] * louiz’ left the chat.
[20:27:25] * victor left the chat.
[20:27:34] * victor joined the chat.
[20:27:40] * louiz’ joined the chat.
[20:30:25] * victor left the chat.
[20:30:39] * victor joined the chat.
[20:42:27] * victor left the chat.
[20:42:30] * victor joined the chat.
[20:43:08] * victor left the chat.
[20:43:08] * victor joined the chat.
[20:43:09] * victor left the chat.
[20:43:09] * victor joined the chat.
[20:58:29] * victor left the chat.
[20:58:31] * victor joined the chat.
[21:07:22] * Alex left the chat.
[21:26:53] * Treebilou left the chat.
[21:34:14] * harrykar joined the chat.
[21:35:39] * Neustradamus joined the chat.
[21:38:54] * elmex joined the chat.
[21:40:25] * xnyhps joined the chat.
[21:40:42] * Asterix joined the chat.
[21:41:53] * Treebilou joined the chat.
[21:48:35] * Neustradamus left the chat.
[21:49:40] * Neustradamus joined the chat.
[21:56:20] * naw joined the chat.
[22:00:00] * Minos joined the chat.
[22:03:10] * victor joined the chat.
[22:03:30] * Asterix left the chat.
[22:10:57] * Florob joined the chat.
[22:13:20] * darkrain_ joined the chat.
[22:45:46] * codora joined the chat.
[22:46:36] * naw left the chat.
[23:22:21] * Florob left the chat.
[23:42:04] * Xificurk joined the chat.
[23:48:03] * scippio joined the chat.
[23:52:55] * Link Mauve joined the chat.
[23:57:53] * victor left the chat.
[23:57:54] * victor joined the chat.
[23:59:36] * victor left the chat.
[23:59:38] * victor joined the chat.
[23:59:38] * victor left the chat.
[23:59:39] * victor joined the chat.
[00:00:56] * victor left the chat.
[00:00:57] * victor joined the chat.
[00:00:57] * victor left the chat.
[00:00:59] * victor joined the chat.
[00:08:10] * Zash joined the chat.
[00:10:03] * victor left the chat.
[00:10:06] * victor joined the chat.