steffen: server/perl-kolab/Kolab Kolab.pm,1.25,1.26

cvs at intevation.de cvs at intevation.de
Thu Jun 30 14:35:36 CEST 2005


Author: steffen

Update of /kolabrepository/server/perl-kolab/Kolab
In directory doto:/tmp/cvs-serv5720/Kolab

Modified Files:
	Kolab.pm 
Log Message:
had to revert a few things to get reload to work

Index: Kolab.pm
===================================================================
RCS file: /kolabrepository/server/perl-kolab/Kolab/Kolab.pm,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- Kolab.pm	30 Jun 2005 11:12:10 -0000	1.25
+++ Kolab.pm	30 Jun 2005 12:35:34 -0000	1.26
@@ -355,37 +355,38 @@
 
     if ($haschanged{'slapd'}) {
         &log('K', 'Restarting OpenLDAP...');
-        system("$ap::config->{sbindir}/slurpd restart &");
+        system("$ap::config->{bindir}/openpkg rc openldap restart &");
     }
 
     if ($haschanged{'saslauthd'}) {
         &log('K', 'Restarting SASLAuthd...');
-        system("$ap::config->{sbindir}/rcsaslauthd stop; sleep 1; $ap::config->{sbindir}/rcsaslauthd -a ldap -n 5");
+        system("$ap::config->{bindir}/openpkg rc sasl stop; sleep 1; $ap::config->{sbindir}/saslauthd -a ldap -n 5");
     }
 
     if ($haschanged{'apache'}) {
         &log('K', 'Reloading Apache...');
-        system("$ap::config->{sbindir}/apache2ctl graceful");
+        system("$ap::config->{sbindir}/apachectl graceful");
     }
 
     if ($haschanged{'postfix'}) {
         &log('K', 'Reloading Postfix...');
-        system("$ap::config->{sbindir}/rcpostfix reload");
+        system("$ap::config->{sbindir}/postfix reload");
     }
 
     if ($haschanged{'imapd'}) {
         &log('K', 'Restarting imapd...');
-        system("$ap::config->{sbindir}/rccyrus restart");
+	# Would it be enough with a reload here? /steffen
+        system("$ap::config->{bindir}/openpkg rc imapd restart");
     }
 
     if ($haschanged{'amavisd'}) {
         &log('K', 'Restarting amavisd...');
-        system("$ap::config->{sbindir}/rcamavisd restart");
+        system("$ap::config->{bindir}/openpkg rc amavisd restart");
     }
 
     if ($haschanged{'clamav'}) {
         &log('K', 'Restarting clamav...');
-        system("$ap::config->{sbindir}/clamd restart");
+        system("$ap::config->{bindir}/openpkg rc clamav restart");
     }
 
     if ($config{'proftpd-ftp'} =~ /true/i) {





More information about the commits mailing list