[LON-CAPA-cvs] cvs: doc /install/linux install.pl

raeburn raeburn at source.lon-capa.org
Fri Apr 5 10:26:25 EDT 2013


raeburn		Fri Apr  5 14:26:25 2013 EDT

  Modified files:              
    /doc/install/linux	install.pl 
  Log:
  - SuSE 12 uses systemctl in place of chkconfig to start Apache.
  
  
Index: doc/install/linux/install.pl
diff -u doc/install/linux/install.pl:1.25 doc/install/linux/install.pl:1.26
--- doc/install/linux/install.pl:1.25	Wed Feb 27 19:48:53 2013
+++ doc/install/linux/install.pl	Fri Apr  5 14:26:25 2013
@@ -72,7 +72,7 @@
           &mt('Stopping execution.')."\n";
     exit;
 } else {
-    print LOG '$Id: install.pl,v 1.25 2013/02/27 19:48:53 raeburn Exp $'."\n";
+    print LOG '$Id: install.pl,v 1.26 2013/04/05 14:26:25 raeburn Exp $'."\n";
 }
 
 #
@@ -505,6 +505,11 @@
         if ($distro =~ /^(suse|sles)9/) {
             $daemon{'apache'} = 'apache';
         }
+        if ($distro =~ /^suse(\d+)/) {
+            if ($1 > 11)
+                $uses_systemctl{'apache'} = 1;
+            }
+        }
     } elsif ($distro =~ /^(?:debian|ubuntu)(\d+)/) {
         my $version = $1;
         @runlevels = qw/2 3 4 5/;
@@ -516,7 +521,7 @@
         if (($distro =~ /^ubuntu/) && ($version <= 8)) {
             $daemon{'cups'} = 'cupsys';
         }
-    } elsif ($distro =~ /^(?:fedora)(\d+)/) {
+    } elsif ($distro =~ /^fedora(\d+)/) {
         my $version = $1;
         if ($version >= 15) {
             $uses_systemctl{'ntp'} = 1;




More information about the LON-CAPA-cvs mailing list