steffen: server/perl-kolab/Kolab Kolab.pm,1.13,1.14

cvs at intevation.de cvs at intevation.de
Wed Sep 1 01:15:49 CEST 2004


Author: steffen

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

Modified Files:
	Kolab.pm 
Log Message:
bugfixes

Index: Kolab.pm
===================================================================
RCS file: /kolabrepository/server/perl-kolab/Kolab/Kolab.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- Kolab.pm	30 Aug 2004 23:09:58 -0000	1.13
+++ Kolab.pm	31 Aug 2004 23:15:47 -0000	1.14
@@ -354,12 +354,12 @@
 
     if ($haschanged{'slapd'}) {
         &log('K', 'Restarting OpenLDAP...');
-        system("$prefix/etc/rc.d/rc.openldap restart");
+        system("$prefix/bin/openpkg rc openldap restart");
     }
 
     if ($haschanged{'saslauthd'}) {
         &log('K', 'Restarting SASLAuthd...');
-        system("$prefix/etc/rc.d/rc.sasl stop; sleep 1; $prefix/sbin/saslauthd -a ldap -n 5");
+        system("$prefix/bin/openpkg rc sasl stop; sleep 1; $prefix/sbin/saslauthd -a ldap -n 5");
     }
 
     if ($haschanged{'apache'}) {
@@ -374,19 +374,19 @@
 
     if ($haschanged{'imapd'}) {
         &log('K', 'Restarting imapd...');
-        system("$prefix/etc/rc.d/rc.imapd restart");
+        system("$prefix/bin/openpkg rc imapd restart");
     }
 
     if ($config{'proftpd-ftp'} =~ /true/i) {
         Kolab::log('K', 'Starting ProFTPd if not running');
-        system("$prefix/etc/rc.d/rc.proftpd start");
+        system("$prefix/bin/openpkg rc proftpd start");
         if ($haschanged{'proftpd'}) {
             &log('K', 'Reloading ProFTPd...');
             kill('SIGHUP', `cat $prefix/var/proftpd/proftpd.pid`);
         }
     } else {
         &log('K', 'Stopping ProFTPd, if running...');
-        system("$prefix/etc/rc.d/rc.proftpd stop");
+        system("$prefix/bin/openpkg rc proftpd stop");
     }
 
     %Kolab::Conf::haschanged = ();





More information about the commits mailing list