diff options
author | Kim Alvefur <zash@zash.se> | 2020-09-08 22:50:43 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-09-08 22:50:43 +0200 |
commit | 33e7e5ef2d5e97b45cd9bcb56ce5ec6adc3a66c9 (patch) | |
tree | 88a9172449c4999134ee928031842ffbfaae335f | |
parent | e419f0b5f4fd61a6e0e2f96f497bb72ddddc1a98 (diff) | |
download | prosody-33e7e5ef2d5e97b45cd9bcb56ce5ec6adc3a66c9.tar.gz prosody-33e7e5ef2d5e97b45cd9bcb56ce5ec6adc3a66c9.zip |
mod_posix: Daemonize later
Daemonizing later means we can use that as a "successful startup"
signal and problems can be reported via exit code.
-rw-r--r-- | plugins/mod_posix.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua index 0a658009..d3ff1f7c 100644 --- a/plugins/mod_posix.lua +++ b/plugins/mod_posix.lua @@ -117,9 +117,7 @@ if daemonize then write_pidfile(); end end - if not prosody.start_time then -- server-starting - daemonize_server(); - end + module:hook("server-started", daemonize_server) else -- Not going to daemonize, so write the pid of this process write_pidfile(); |