version 1.11, 2010/01/01 04:29:01
|
version 1.14, 2011/03/01 21:34:28
|
Line 44 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 'sles11' || '<DIST />' eq 'suse10.1' || '<DIST />' eq 'suse10.2' || '<DIST />' eq 'suse10.3' || '<DIST />' eq 'suse11.1' || '<DIST />' eq 'suse11.2') { |
} 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'; |
} |
} |
Line 58 foreach my $service ($webserver,'loncont
|
Line 58 foreach my $service ($webserver,'loncont
|
if ($results eq '') { |
if ($results eq '') { |
print "**** WARNING: $service is not set to run on boot.$/". |
print "**** WARNING: $service is not set to run on boot.$/". |
" Execute the following commands to fix this:".$/; |
" Execute the following commands to fix this:".$/; |
unless ('<DIST />' eq 'debian5' || '<DIST />' eq 'ubuntu6' || '<DIST />' eq 'ubuntu8') { |
unless ('<DIST />' eq 'debian5' || '<DIST />' eq 'debian6' || '<DIST />' eq 'ubuntu6' || '<DIST />' eq 'ubuntu8' '<DIST />' eq 'ubuntu10') { |
print " $checker_bin --add $webserver".$/; |
print " $checker_bin --add $webserver".$/; |
} |
} |
print " $checker_bin --level $rlstr $service on".$/; |
print " $checker_bin --level $rlstr $service on".$/; |