diff options
author | Michał Zegan <webczat_200@poczta.onet.pl> | 2014-12-12 19:46:20 +0100 |
---|---|---|
committer | Michał Zegan <webczat_200@poczta.onet.pl> | 2014-12-12 19:53:30 +0100 |
commit | e4068249dd2ba4f198c7ef0117743896248769a4 (patch) | |
tree | fdfb27e2f3e841e158164d2b75b8d3a7640241d9 /src/servers.cpp | |
parent | 7213413f8b5c68a99f769facb93acfc3fc4ceb4e (diff) |
Anope will now fork even when not started from a tty, like init scrpits.
It is useful for init systems or startup scripts, because it allows easily waiting until services connect to the uplink, without them forking it wouldn't be possible to tell if they finished initialization or not unless they would communicate directly with init systems like systemd.
Diffstat (limited to 'src/servers.cpp')
-rw-r--r-- | src/servers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/servers.cpp b/src/servers.cpp index 3427c2beb..6401d8d59 100644 --- a/src/servers.cpp +++ b/src/servers.cpp @@ -287,7 +287,7 @@ void Server::Sync(bool sync_links) FOREACH_MOD(OnUplinkSync, (this)); - if (!Anope::NoFork && Anope::AtTerm()) + if (!Anope::NoFork) { Log(LOG_TERMINAL) << "Successfully linked, launching into background..."; Anope::Fork(); |