mod_posix: Move everything to util.startup
This allows greater control over the order of events.
Notably, the internal ordering between daemonization, initialization of
libunbound and setup of signal handling is sensitive.
libunbound starts a separate thread for processing DNS requests.
If this thread is started before signal handling has been set up, it
will not inherit the signal handlers and instead behave as it would have
before signal handlers were set up, i.e. cause the whole process to
immediately exit.
libunbound is usually initialized on the first DNS request, usually
triggered by an outgoing s2s connection attempt.
If daemonization happens before signals have been set up, signals may
not be processed at all.
# Prosody IM Server
## Description
Prosody is a server for Jabber/XMPP written in Lua. It aims to be easy to use
and light on resources. For developers, it aims to give a flexible system on
which to rapidly develop added functionality or rapidly prototype new
protocols.
## Useful links
Homepage: https://prosody.im/
Download: https://prosody.im/download
Documentation: https://prosody.im/doc/
Issue tracker: https://issues.prosody.im/
Jabber/XMPP Chat:
Address:
prosody@conference.prosody.im
Web interface:
https://chat.prosody.im/
Mailing lists:
User support and discussion:
https://groups.google.com/group/prosody-users
Development discussion:
https://groups.google.com/group/prosody-dev
## Installation
See the accompanying INSTALL file for help on building Prosody from source.
Alternatively see our guide at https://prosody.im/doc/install