Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 6c39142f2b4742449ef2bb7f87c171ae > files > 1

perl-Kolab-0.9.3-0.20050801.2mdk.src.rpm

--- Kolab.pm	2005-07-26 17:11:53.000000000 +0200
+++ Kolab.pm.oden	2005-07-26 17:15:36.000000000 +0200
@@ -387,17 +387,17 @@
 
     if ($haschanged{'slapd'}) {
         &log('K', 'Restarting OpenLDAP...');
-        system("$ap::config->{bindir}/openpkg rc openldap restart &");
+        system("/etc/rc.d/init.d/ldap restart &");
     }
 
     if ($haschanged{'saslauthd'}) {
         &log('K', 'Restarting SASLAuthd...');
-        system("$ap::config->{bindir}/openpkg rc sasl stop; sleep 1; $ap::config->{sbindir}/saslauthd -a ldap -n 5");
+        system("/etc/rc.d/init.d/saslauthd stop; sleep 1; $ap::config->{sbindir}/saslauthd -a ldap -n 5");
     }
 
     if ($haschanged{'apache'}) {
         &log('K', 'Reloading Apache...');
-        system("$ap::config->{sbindir}/apachectl graceful");
+        system("/etc/rc.d/init.d/httpd graceful");
     }
 
     if ($haschanged{'postfix'}) {
@@ -408,29 +408,29 @@
     if ($haschanged{'imapd'}) {
         &log('K', 'Restarting imapd...');
 	# Would it be enough with a reload here? /steffen
-        system("$ap::config->{bindir}/openpkg rc imapd restart");
+        system("/etc/rc.d/init.d/cyrus-imapd restart");
     }
 
     if ($haschanged{'amavisd'}) {
         &log('K', 'Restarting amavisd...');
-        system("$ap::config->{bindir}/openpkg rc amavisd restart");
+        system("/etc/rc.d/init.d/amavisd restart");
     }
 
     if ($haschanged{'clamav'}) {
         &log('K', 'Restarting clamav...');
-        system("$ap::config->{bindir}/openpkg rc clamav restart");
+        system("/etc/rc.d/init.d/clamd restart");
     }
 
     if ($config{'proftpd-ftp'} =~ /true/i) {
         Kolab::log('K', 'Starting ProFTPd if not running');
-        system("$ap::config->{bindir}/openpkg rc proftpd start");
+        system("/etc/rc.d/init.d/proftpd start");
         if ($haschanged{'proftpd'}) {
             &log('K', 'Reloading ProFTPd...');
             kill('SIGHUP', `cat $ap::config->{ftpserver_pidfile}`);
         }
     } else {
         &log('K', 'Stopping ProFTPd, if running...');
-        system("$ap::config->{bindir}/openpkg rc proftpd stop");
+        system("/etc/rc.d/init.d/proftpd stop");
     }
 
     %Kolab::Conf::haschanged = ();