cyrusimap / cyrus-imapd

Cyrus IMAP is an email, contacts and calendar server
http://cyrusimap.org
Other
524 stars 145 forks source link

Try to prepend CYRUS_PATH before reading in the default location for imapd.conf #1342

Closed brong closed 13 years ago

brong commented 13 years ago

From: Øyvind Kolbu Bugzilla-Id: 3431 Version: 2.5.x (next) Owner: Bron Gondwana

brong commented 13 years ago

From: Øyvind Kolbu

We use HP Service Guard to run multiple Cyrus instances on each machine. In order to avoid using "-C /path/to/instance/imapd.conf" everytime we use a command such as quota, cyr_expire, etc, we've patched lib/libconfig.c to attempt to prepend the path in the environment variable CYRUS_PATH before attempting to open the default location for imapd.conf.

master/masterconf.c has been modified been modified in the same way, and thus simplifying our cyrus.conf for each instance.

This patch would be useful for anyone running multiple Cyrus instances on a single machine.

brong commented 13 years ago

Attachment-Id: 1370 From: Øyvind Kolbu Type: text/plain File: 0004-Try-to-read-imapd.conf-from-the-directory-defined-in.patch

Patch against master

brong commented 13 years ago

From: Bron Gondwana

Applied to master and stable