diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-25 16:55:12 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-25 16:55:12 -0400 |
commit | bc636a8bbddde9dc1d09a6dab2f325c4190f871a (patch) | |
tree | 718b901e4a4645817a1a6a4e7aa847617a5a9aa6 /src/lib/Bcfg2/Server/CherryPyCore.py | |
parent | f08ecec3ec2c8ff2baed5c9fa613a61e5c3406cd (diff) | |
download | bcfg2-bc636a8bbddde9dc1d09a6dab2f325c4190f871a.tar.gz bcfg2-bc636a8bbddde9dc1d09a6dab2f325c4190f871a.tar.bz2 bcfg2-bc636a8bbddde9dc1d09a6dab2f325c4190f871a.zip |
moved pidfile creation into the server backends
Diffstat (limited to 'src/lib/Bcfg2/Server/CherryPyCore.py')
-rw-r--r-- | src/lib/Bcfg2/Server/CherryPyCore.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/CherryPyCore.py b/src/lib/Bcfg2/Server/CherryPyCore.py index 6b438b71c..a840d5ae9 100644 --- a/src/lib/Bcfg2/Server/CherryPyCore.py +++ b/src/lib/Bcfg2/Server/CherryPyCore.py @@ -7,7 +7,7 @@ from Bcfg2.Server.Core import BaseCore import cherrypy from cherrypy.lib import xmlrpcutil from cherrypy._cptools import ErrorTool -from cherrypy.process.plugins import Daemonizer +from cherrypy.process.plugins import Daemonizer, PIDFile def on_error(*args, **kwargs): # pylint: disable=W0613 @@ -91,6 +91,7 @@ class Core(BaseCore): def _daemonize(self): Daemonizer(cherrypy.engine).subscribe() + PIDFile(cherrypy.engine, self.setup['daemon']).subscribe() def _run(self): hostname, port = urlparse(self.setup['location'])[1].split(':') |