sylae / ligrev

XMPP MUC Utility bot
GNU General Public License v3.0
2 stars 1 forks source link

Automatic restarts periodically and on failures #7

Closed sylae closed 8 years ago

sylae commented 10 years ago

This will probably need to be done in a shell wrapper, but ligrev should be able to restart automatically without user interaction, for example if the xmpp server shuts down.

sylae commented 8 years ago

This does not consistently work. It appears that JAXL is getting its hands all over with its own error handling.

A possible solution would be to add die(1) using register_shutdown_function but this feels pretty hackey, especially as calling die this way will stop any other registered functions from exiting. That might be okay, though, as we should be the last code touching that stack, and thus will execute last.

More research is needed

sylae commented 8 years ago

Seems to be working fine...We'll reopen again if it causes grief again.