7 Sep 2011 22:01
Re: restart strategy for extauth
Jesse Thompson <jesse.thompson <at> doit.wisc.edu>
2011-09-07 20:01:29 GMT
2011-09-07 20:01:29 GMT
It won't be restarted, so you will need to use your server monitoring
tools to make sure that the program is running.
If your extauth program is complex (and consequently crashy), or you
just want the ability to change or restart the program after it is
already started, then I suggest you take a look at my post from
7/13/2011 with Subject "Re: [ejabberd] multiple authentication methods:
order and priority of operation" where I discuss an approach that allows
you to restart your extauth program without restarting ejabberd.
Jesse
On 9/7/11 2:32 PM, Daniel Dormont wrote:
> Hi, I am using extauth and I'm running into a tricky situation: what
> happens if my extauth program crashes? As best I can tell, what
> happens is the port closes and subsequent auth requests fail with a
> message like:
>
> =CRASH REPORT==== 6-Sep-2011::17:33:02 ===
> crasher:
> initial call: gen:init_it/6
> pid:<0.20948.0>
> registered_name: []
> exception exit: {badarg,[{extauth,call_port,2},
> {ejabberd_auth_external,check_password_extauth,3},
> {ejabberd_auth,check_password_loop,2},
> {cyrsasl_plain,mech_step,2},
> {cyrsasl,server_step,2},
> {ejabberd_c2s,wait_for_feature_request,2},
> {p1_fsm,handle_msg,10},
> {proc_lib,init_p_do_apply,3}]}
> in function p1_fsm:terminate/7
> ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.38.0>]
> messages: []
> links: [<0.263.0>]
> dictionary: [{'$internal_queue_len',0},{random_seed,{12982,22012,13984}}]
> trap_exit: false
> status: running
> heap_size: 6765
> stack_size: 24
> reductions: 3268
> neighbours:
>
> Can extauth be configured to restart the program automatically? thanks,
>
> dan
> _______________________________________________
> ejabberd mailing list
> ejabberd <at> jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
_______________________________________________ ejabberd mailing list ejabberd <at> jabber.ru http://lists.jabber.ru/mailman/listinfo/ejabberd
RSS Feed