diff options
Diffstat (limited to 'oslo_rootwrap/wrapper.py')
-rw-r--r-- | oslo_rootwrap/wrapper.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/oslo_rootwrap/wrapper.py b/oslo_rootwrap/wrapper.py index 49fdac3..050fceb 100644 --- a/oslo_rootwrap/wrapper.py +++ b/oslo_rootwrap/wrapper.py @@ -91,6 +91,12 @@ class RootwrapConfig(object): else: self.use_syslog = False + # daemon_timeout + if config.has_option("DEFAULT", "daemon_timeout"): + self.daemon_timeout = int(config.get("DEFAULT", "daemon_timeout")) + else: + self.daemon_timeout = 600 + def setup_syslog(execname, facility, level): rootwrap_logger = logging.getLogger() |