mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_posix: Daemonize later
Daemonizing later means we can use that as a "successful startup" signal and problems can be reported via exit code.
This commit is contained in:
parent
e419f0b5f4
commit
33e7e5ef2d
1 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue