1 |
--- e-smith-base-5.8.0/root/etc/e-smith/events/actions/fix-startup.old 2016-07-04 03:40:20.000000000 -0400 |
2 |
+++ e-smith-base-5.8.0/root/etc/e-smith/events/actions/fix-startup 2016-07-16 10:32:57.611172421 -0400 |
3 |
@@ -21,22 +21,16 @@ |
4 |
my $sv=$service->{'name'}; |
5 |
next if $sv eq 'bootstrap-console'; |
6 |
$sv= $equivalent->{$sv} || $sv; |
7 |
-#print "$sv: "; |
8 |
if (-e "/lib/systemd/system/multi-user.target.wants/$sv.service") |
9 |
{ |
10 |
- #print "systemd (lib) "; |
11 |
system(qw(systemctl disable), $sv); |
12 |
} |
13 |
elsif (-e "/etc/systemd/system/multi-user.target.wants/$sv.service") |
14 |
{ |
15 |
- #print "systemd (etc)"; |
16 |
system(qw(systemctl disable), $sv); |
17 |
} |
18 |
elsif (-e "/etc/init.d/$sv") |
19 |
{ |
20 |
- #print "chkconfig $sv off "; |
21 |
- system("chkconfig", $sv, "off"); |
22 |
- #print "\n"; |
23 |
+ system("/usr/sbin/chkconfig", $sv, "off"); |
24 |
} |
25 |
- #else {print "\n";} |
26 |
} |