Diff for /doc/loncapafiles/chkconfig.piml between versions 1.8 and 1.13

version 1.8, 2009/07/14 12:26:29 version 1.13, 2011/02/27 18:54:59
Line 37  http://www.lon-capa.org/ Line 37  http://www.lon-capa.org/
 <perlscript mode="fg">  <perlscript mode="fg">
 my $checker_bin = '/sbin/chkconfig';  my $checker_bin = '/sbin/chkconfig';
 my $webserver ='httpd';  my $webserver ='httpd';
 my @services = ('apache2','loncontrol');  
 my @runlevels = qw/3 4 5/;  my @runlevels = qw/3 4 5/;
 my $rlstr = join('',@runlevels);  my $rlstr = join('',@runlevels);
   
Line 45  if ('<DIST />' eq 'suse9.3' || '<DIST /> Line 44  if ('<DIST />' eq 'suse9.3' || '<DIST />
     $checker_bin = '/';      $checker_bin = '/';
     $webserver = 'apache';      $webserver = 'apache';
     @runlevels = qw/3 5/;      @runlevels = qw/3 5/;
 } elsif ('<DIST />' eq 'sles10' || '<DIST />' eq 'suse10.1' || '<DIST />' eq 'suse10.2' || '<DIST />' eq 'suse10.3' || '<DIST />' eq 'suse11.1') {  } elsif ('<DIST />' eq 'sles10' || '<DIST />' eq 'sles11' || '<DIST />' eq 'suse10.1' || '<DIST />' eq 'suse10.2' || '<DIST />' eq 'suse10.3' || '<DIST />' eq 'suse11.1' || '<DIST />' eq 'suse11.2' || '<DIST />' eq 'suse11.3' || '<DIST />' eq 'suse11.4') {
     $webserver = 'apache2';      $webserver = 'apache2';
 } elsif ('<DIST />' eq 'debian5' ||  '<DIST />' eq 'ubuntu6' ||  '<DIST />' eq 'ubuntu8') {  } elsif ('<DIST />' eq 'debian5' || '<DIST />' eq 'debian6' || '<DIST />' eq 'ubuntu6' ||  '<DIST />' eq 'ubuntu8' || '<DIST />' eq 'ubuntu10') {
     $checker_bin = '/usr/sbin/sysv-rc-conf';      $checker_bin = '/usr/sbin/sysv-rc-conf';
     $webserver = 'apache2';      $webserver = 'apache2';
 }  }
 exit if (! -x $checker_bin);  exit if (! -x $checker_bin);
   
 foreach my $service (@services) {  foreach my $service ($webserver,'loncontrol') {
     my $command = $checker_bin.' --list '.$service;      my $command = $checker_bin.' --list '.$service;
     my $results = `$command`;      my $results = `$command`;
     if ($results eq '') {      if ($results eq '') {

Removed from v.1.8  
changed lines
  Added in v.1.13


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>