summaryrefslogtreecommitdiff
path: root/daemon/rrdbotd.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/rrdbotd.c')
-rw-r--r--daemon/rrdbotd.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/daemon/rrdbotd.c b/daemon/rrdbotd.c
index c74648d..5b447a3 100644
--- a/daemon/rrdbotd.c
+++ b/daemon/rrdbotd.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, Nate Nielsen
+ * Copyright (c) 2005, Stefan Walter
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -32,7 +32,7 @@
*
*
* CONTRIBUTORS
- * Nate Nielsen <nielsen@memberwebs.com>
+ * Stef Walter <stef@memberwebs.com>
*
*/
@@ -312,10 +312,6 @@ main(int argc, char* argv[])
/* The mainloop server */
server_init();
- /* Setup the Async DNS resolver */
- if(async_resolver_init() < 0)
- err(1, "couldn't initialize resolver");
-
/* Parse config and setup SNMP system */
rb_config_parse();
@@ -335,6 +331,13 @@ main(int argc, char* argv[])
daemonized = 1;
}
+ /* Setup the Async DNS resolver */
+ if(async_resolver_init() < 0)
+ {
+ rb_message(LOG_ERR, "couldn't initialize resolver");
+ /* Allow things to proceed without resolver */
+ }
+
/* Handle signals */
signal(SIGPIPE, SIG_IGN);
signal(SIGHUP, SIG_IGN);