mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +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();
|
write_pidfile();
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if not prosody.start_time then -- server-starting
|
module:hook("server-started", daemonize_server)
|
||||||
daemonize_server();
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
-- Not going to daemonize, so write the pid of this process
|
-- Not going to daemonize, so write the pid of this process
|
||||||
write_pidfile();
|
write_pidfile();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue