summaryrefslogtreecommitdiff
path: root/oslo_rootwrap/wrapper.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-03-07 14:32:10 +0000
committerGerrit Code Review <review@openstack.org>2017-03-07 14:32:10 +0000
commitfc5b2a9995d2ba1f70226fe750f73f9e20d3906e (patch)
treee4d450d9a372881d1164054eb1a099344df52369 /oslo_rootwrap/wrapper.py
parentd089ff3ee9d8725917526b69fb1959c045ccf861 (diff)
parent6285b63572c893391cb1a9e0c482658938f13329 (diff)
downloadoslo-rootwrap-fc5b2a9995d2ba1f70226fe750f73f9e20d3906e.tar.gz
Merge "Allow rootwrap-daemon to timeout and exit"5.6.0
Diffstat (limited to 'oslo_rootwrap/wrapper.py')
-rw-r--r--oslo_rootwrap/wrapper.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/oslo_rootwrap/wrapper.py b/oslo_rootwrap/wrapper.py
index 6a96e1a..dd223fa 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()