summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/CherryPyCore.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-25 16:55:12 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-25 16:55:12 -0400
commitbc636a8bbddde9dc1d09a6dab2f325c4190f871a (patch)
tree718b901e4a4645817a1a6a4e7aa847617a5a9aa6 /src/lib/Bcfg2/Server/CherryPyCore.py
parentf08ecec3ec2c8ff2baed5c9fa613a61e5c3406cd (diff)
downloadbcfg2-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.py3
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(':')