[LON-CAPA-cvs] cvs: doc /loncapafiles chkconfig.piml

raeburn raeburn@source.lon-capa.org
Tue, 14 Jul 2009 21:05:35 -0000


raeburn		Tue Jul 14 21:05:35 2009 EDT

  Modified files:              
    /doc/loncapafiles	chkconfig.piml 
  Log:
  Name of webserver service set dynamically based on distro.
  
  
Index: doc/loncapafiles/chkconfig.piml
diff -u doc/loncapafiles/chkconfig.piml:1.8 doc/loncapafiles/chkconfig.piml:1.9
--- doc/loncapafiles/chkconfig.piml:1.8	Tue Jul 14 12:26:29 2009
+++ doc/loncapafiles/chkconfig.piml	Tue Jul 14 21:05:35 2009
@@ -3,7 +3,7 @@
 <!-- checkconfig.piml -->
 <!-- Matthew Hall -->
 
-<!-- $Id: chkconfig.piml,v 1.8 2009/07/14 12:26:29 raeburn Exp $ -->
+<!-- $Id: chkconfig.piml,v 1.9 2009/07/14 21:05:35 raeburn Exp $ -->
 
 <!--
 
@@ -37,7 +37,6 @@
 <perlscript mode="fg">
 my $checker_bin = '/sbin/chkconfig';
 my $webserver ='httpd';
-my @services = ('apache2','loncontrol');
 my @runlevels = qw/3 4 5/;
 my $rlstr = join('',@runlevels);
 
@@ -53,7 +52,7 @@
 }
 exit if (! -x $checker_bin);
 
-foreach my $service (@services) {
+foreach my $service ($webserver,'loncontrol') {
     my $command = $checker_bin.' --list '.$service;
     my $results = `$command`;
     if ($results eq '') {