diff options
author | Thomas Arendsen Hein <thomas@intevation.de> | 2009-05-07 16:13:33 (GMT) |
---|---|---|
committer | Thomas Arendsen Hein <thomas@intevation.de> | 2009-05-07 16:13:33 (GMT) |
commit | 979691e26b95b3d110cd6cb94f8226c09dd7169f (patch) | |
tree | e946a456b2bee90ca2f4ec218476672521478014 /lib | |
parent | 226d4c184916533fa4fa512d804e79046f170fc3 (diff) | |
download | perl-Kolab-979691e26b95b3d110cd6cb94f8226c09dd7169f.tar.gz |
Use RUNONCHANGE mechanism to restart or reload imapd:
cyrus.conf.template: openpkg rc imapd reload (see man cyrmaster)
imapd.conf.template: openpkg rc imapd restart (reload and reconnect was not
enough when I tested changing unixhierarchysep and annotation_definitions)
imapd.annotation_definitions.template: openpkg rc imapd restart (reload and
reconnect was not enough)
imapd.group.template: nothing (a simple reconnect was enough, this is the old
behaviour and changing this to restart to force new permissions would be
overkill since then all users would be disconnected)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kolab/Conf.pm | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Kolab/Conf.pm b/lib/Kolab/Conf.pm index 7d902fe..3491795 100644 --- a/lib/Kolab/Conf.pm +++ b/lib/Kolab/Conf.pm @@ -288,8 +288,6 @@ sub build { if ($rc) { if ($cfg =~ /openldap/) { $haschanged{'slapd'} = 1; - } elsif ($cfg =~ /imapd/) { - $haschanged{'imapd'} = 1; } $templatehaschanged{$tmpl} = 1; @@ -814,12 +812,6 @@ sub reload system("$Kolab::config{'KOLABRC'} rc openldap restart &"); } - if ($haschanged{'imapd'}) { - &Kolab::log('K', 'Restarting imapd...'); - # Would it be enough with a reload here? /steffen - system("$Kolab::config{'KOLABRC'} rc imapd restart"); - } - %Kolab::Conf::haschanged = (); &Kolab::log('K', 'Reload finished'); |