summaryrefslogtreecommitdiffstats
path: root/kolabd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-13 11:37:40 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-13 11:37:40 +0100
commite3d33d10fbdbf362b89476fbdab6c7a6ca0a45fb (patch)
tree9e933fbf43b7aa1f4351590baa173d03d6d3bf0a /kolabd
parent1df64e63556db23be0d701ca10c4fd35f87f9aec (diff)
downloadpykolab-e3d33d10fbdbf362b89476fbdab6c7a6ca0a45fb.tar.gz
Make use of the new ensure_directory() function (#840)
Diffstat (limited to 'kolabd')
-rw-r--r--kolabd/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/kolabd/__init__.py b/kolabd/__init__.py
index bf4fc7b..5283c9f 100644
--- a/kolabd/__init__.py
+++ b/kolabd/__init__.py
@@ -91,6 +91,12 @@ class KolabDaemon(object):
exitcode = 0
+ utils.ensure_directory(
+ os.path.dirname(conf.pidfile),
+ conf.process_username,
+ conf.process_groupname
+ )
+
try:
try:
(ruid, euid, suid) = os.getresuid()