summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/BuiltinCore.py
diff options
context:
space:
mode:
authorArto Jantunen <viiru@debian.org>2013-07-21 10:35:50 +0300
committerSol Jerome <sol.jerome@gmail.com>2013-07-21 09:38:06 -0500
commit360ba2e77865d2a292568ede99d8896ef7742056 (patch)
treef612836ba00b74a7bcf74735b7c83ffaf1e18375 /src/lib/Bcfg2/Server/BuiltinCore.py
parent2f45bf09380595da88ebb1757042b7e799d41f57 (diff)
downloadbcfg2-360ba2e77865d2a292568ede99d8896ef7742056.tar.gz
bcfg2-360ba2e77865d2a292568ede99d8896ef7742056.tar.bz2
bcfg2-360ba2e77865d2a292568ede99d8896ef7742056.zip
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.
Diffstat (limited to 'src/lib/Bcfg2/Server/BuiltinCore.py')
-rw-r--r--src/lib/Bcfg2/Server/BuiltinCore.py3
1 files changed, 2 insertions, 1 deletions
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)