summaryrefslogtreecommitdiffstats
path: root/daemons
diff options
context:
space:
mode:
Diffstat (limited to 'daemons')
-rwxr-xr-xdaemons/dnssec/ipa-dnskeysyncd22
1 files changed, 11 insertions, 11 deletions
diff --git a/daemons/dnssec/ipa-dnskeysyncd b/daemons/dnssec/ipa-dnskeysyncd
index 398f00762..31027cb0c 100755
--- a/daemons/dnssec/ipa-dnskeysyncd
+++ b/daemons/dnssec/ipa-dnskeysyncd
@@ -22,6 +22,17 @@ from ipaplatform.paths import paths
from ipapython.dnssec.keysyncer import KeySyncer
+# IPA framework initialization
+api.bootstrap(in_server=True, log=None) # no logging to file
+api.finalize()
+standard_logging_setup(verbose=True, debug=api.env.debug)
+log = root_logger
+#log.addHandler(systemd.journal.JournalHandler())
+
+# Global state
+watcher_running = True
+ldap_connection = False
+
DAEMONNAME = 'ipa-dnskeysyncd'
PRINCIPAL = None # not initialized yet
WORKDIR = '/tmp' # private temp
@@ -47,21 +58,10 @@ def commenceShutdown(signum, stack):
os.umask(007)
-# Global state
-watcher_running = True
-ldap_connection = False
-
# Signal handlers
signal.signal(signal.SIGTERM, commenceShutdown)
signal.signal(signal.SIGINT, commenceShutdown)
-# IPA framework initialization
-api.bootstrap(in_server=True, log=None) # no logging to file
-api.finalize()
-standard_logging_setup(verbose=True, debug=api.env.debug)
-log = root_logger
-#log.addHandler(systemd.journal.JournalHandler())
-
# Kerberos initialization
PRINCIPAL = str('%s/%s' % (DAEMONNAME, api.env.host))
log.debug('Kerberos principal: %s', PRINCIPAL)