summaryrefslogtreecommitdiffstats
path: root/pykolab/conf
diff options
context:
space:
mode:
authorAeneas Jai├čle <aj@ajaissle.de>2014-08-19 11:35:02 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-19 11:35:02 +0200
commitf40f94e60cdb3b07c76408acf9d64f680a0b82ab (patch)
tree75e8bb525abb9efc85e8d425a672f20baa638662 /pykolab/conf
parentb7448315c76685b66a74368aa6bbfd70c5d7b531 (diff)
downloadpykolab-f40f94e60cdb3b07c76408acf9d64f680a0b82ab.tar.gz
This patch adds an option '--socket' that can be used when starting kolab-saslauthd, to specify the socket file to bind to.
Diffstat (limited to 'pykolab/conf')
-rw-r--r--pykolab/conf/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pykolab/conf/__init__.py b/pykolab/conf/__init__.py
index 030a626..e05f140 100644
--- a/pykolab/conf/__init__.py
+++ b/pykolab/conf/__init__.py
@@ -590,6 +590,16 @@ class Conf(object):
except IOError, e:
log.error(_("Cannot start SASL authentication daemon"))
return False
+ elif os.path.isfile("/var/run/sasl2/mux"):
+ if os.path.isfile("/var/run/sasl2/saslauthd.pid"):
+ log.error(_("Cannot start SASL authentication daemon"))
+ return False
+ else:
+ try:
+ os.remove("/var/run/sasl2/mux")
+ except IOError, e:
+ log.error(_("Cannot start SASL authentication daemon"))
+ return False
return True
def check_setting_use_imap(self, value):