From 360ba2e77865d2a292568ede99d8896ef7742056 Mon Sep 17 00:00:00 2001 From: Arto Jantunen Date: Sun, 21 Jul 2013 10:35:50 +0300 Subject: Make the server process always detach, even if started by init Otherwise startup with systemd in type=forking fails since the daemon will not fork. --- src/lib/Bcfg2/Server/BuiltinCore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/Bcfg2/Server/BuiltinCore.py') diff --git a/src/lib/Bcfg2/Server/BuiltinCore.py b/src/lib/Bcfg2/Server/BuiltinCore.py index e69a92b64..2dd83289d 100644 --- a/src/lib/Bcfg2/Server/BuiltinCore.py +++ b/src/lib/Bcfg2/Server/BuiltinCore.py @@ -31,7 +31,8 @@ class Core(BaseCore): daemon_args = dict(uid=self.setup['daemon_uid'], gid=self.setup['daemon_gid'], - umask=int(self.setup['umask'], 8)) + umask=int(self.setup['umask'], 8), + detach_process=True) if self.setup['daemon']: daemon_args['pidfile'] = TimeoutPIDLockFile(self.setup['daemon'], acquire_timeout=5) -- cgit v1.2.3-1-g7c22