saslauthd/__init__.py
Jeroen van Meeuwen
vanmeeuwen at kolabsys.com
Wed Jul 11 15:07:38 CEST 2012
saslauthd/__init__.py | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
New commits:
commit a182a939513865cf94d65c2a6dbb449be834a440
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date: Wed Jul 11 14:07:13 2012 +0100
Add command-line options for the targeted process username and group name
diff --git a/saslauthd/__init__.py b/saslauthd/__init__.py
index b5c4f4d..93b994e 100644
--- a/saslauthd/__init__.py
+++ b/saslauthd/__init__.py
@@ -59,6 +59,26 @@ class SASLAuthDaemon(object):
default = "/var/run/kolab-saslauthd/kolab-saslauthd.pid",
help = _("Path to the PID file to use."))
+ daemon_group.add_option(
+ "-u",
+ "--user",
+ dest = "process_username",
+ action = "store",
+ default = "kolab",
+ help = _("Run as user USERNAME"),
+ metavar = "USERNAME"
+ )
+
+ daemon_group.add_option(
+ "-g",
+ "--group",
+ dest = "process_groupname",
+ action = "store",
+ default = "kolab",
+ help = _("Run as group GROUPNAME"),
+ metavar = "GROUPNAME"
+ )
+
conf.finalize_conf()
utils.ensure_directory(
More information about the commits
mailing list