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 | 97fc84beed9a3187537b9c8f3d68c7ea34fa82ac (patch) | |
tree | 88a9172449c4999134ee928031842ffbfaae335f /plugins | |
parent | de7565e382abe025e4987a4b77c78da794b57226 (diff) | |
download | prosody-97fc84beed9a3187537b9c8f3d68c7ea34fa82ac.tar.gz prosody-97fc84beed9a3187537b9c8f3d68c7ea34fa82ac.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.
Diffstat (limited to 'plugins')
-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(); |