summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-06-10 16:47:13 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-06-10 16:47:13 +0200
commit810ea19fe32c64a93bbe15b9b10541259bcc9321 (patch)
tree48b9bccf23da59da7b1fb222db2ff850adae5b86 /src
parent7f7c429ae4c49e856a43816138991135ffb7f840 (diff)
downloadbiboumi-810ea19fe32c64a93bbe15b9b10541259bcc9321.tar.gz
biboumi-810ea19fe32c64a93bbe15b9b10541259bcc9321.tar.bz2
biboumi-810ea19fe32c64a93bbe15b9b10541259bcc9321.tar.xz
biboumi-810ea19fe32c64a93bbe15b9b10541259bcc9321.zip
Exit with 1 if the connection to the XMPP server fails
This helps the system understand if the process started correctly or not, when systemd is not used fix #3078
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index adc0c7c..159dcbe 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -203,6 +203,8 @@ int main(int ac, char** av)
#ifdef CARES_FOUND
DNSHandler::instance.destroy();
#endif
+ if (!xmpp_component->ever_auth)
+ return 1; // To signal that the process did not properly start
log_info("All connections cleanly closed, have a nice day.");
return 0;
}