[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r5285 - branches/OpenDNSSEC-enforcer-ng/enforcer-ng/src

Yuri Schaeffer yuri at keihatsu.kirei.se
Mon Jul 4 14:02:31 CEST 2011


Author: yuri
Date: 2011-07-04 14:02:31 +0200 (Mon, 04 Jul 2011)
New Revision: 5285

Modified:
   branches/OpenDNSSEC-enforcer-ng/enforcer-ng/src/ods-enforcerd.c
Log:
In non-daemon mode give user a non-zero exit code on engine_setup fail.


Modified: branches/OpenDNSSEC-enforcer-ng/enforcer-ng/src/ods-enforcerd.c
===================================================================
--- branches/OpenDNSSEC-enforcer-ng/enforcer-ng/src/ods-enforcerd.c	2011-07-04 10:28:21 UTC (rev 5284)
+++ branches/OpenDNSSEC-enforcer-ng/enforcer-ng/src/ods-enforcerd.c	2011-07-04 12:02:31 UTC (rev 5285)
@@ -262,6 +262,8 @@
         engine_type *engine;
         if ((engine = engine_start(cfgfile, cmdline_verbosity, daemonize, info))) {
             engine_setup(engine,enforcer_commands,enforcer_help);
+            /* if setup fails we need a non-zero exit code */
+            if (engine->need_to_exit && !daemonize) exit(3);
             engine_runloop(engine,single_run);
             engine_stop(engine);
         }




More information about the Opendnssec-commits mailing list