/[smeserver]/rpms/e-smith-base/sme10/e-smith-base-5.8.0-bz10957.sme-server.target.patch
ViewVC logotype

Diff of /rpms/e-smith-base/sme10/e-smith-base-5.8.0-bz10957.sme-server.target.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.8 by jpp, Thu Oct 22 20:33:16 2020 UTC Revision 1.10 by jpp, Thu Oct 22 21:17:19 2020 UTC
# Line 9  diff -Nur e-smith-base-5.8.0.old/createl Line 9  diff -Nur e-smith-base-5.8.0.old/createl
9   event_link("rotate_timestamped_logfiles", $event, "05");   event_link("rotate_timestamped_logfiles", $event, "05");
10   event_link("init-accounts", $event, "05");   event_link("init-accounts", $event, "05");
11   event_link("set-hostname", $event, "10");   event_link("set-hostname", $event, "10");
12  @@ -320,7 +321,9 @@  @@ -320,7 +321,8 @@
13   event_link("conf-modules", $event, "30");   event_link("conf-modules", $event, "30");
14   event_link("create-mnt-floppy", $event, "50");   event_link("create-mnt-floppy", $event, "50");
15   event_link("conf-routes", $event, "89");   event_link("conf-routes", $event, "89");
# Line 17  diff -Nur e-smith-base-5.8.0.old/createl Line 17  diff -Nur e-smith-base-5.8.0.old/createl
17  +event_link("systemd-isolate", $event, "94");  +event_link("systemd-isolate", $event, "94");
18  +event_link("reset-unsavedflag", $event, "95");  +event_link("reset-unsavedflag", $event, "95");
19    
 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/network");  
20   safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/wan");   safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/wan");
21   safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dhcpd");   safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dhcpd");
22  @@ -333,6 +335,7 @@  @@ -333,6 +335,7 @@
# Line 152  diff -Nur e-smith-base-5.8.0.old/root/sb Line 151  diff -Nur e-smith-base-5.8.0.old/root/sb
151   then   then
152       if ls /etc/rc7.d/S??$1 >/dev/null 2>/dev/null       if ls /etc/rc7.d/S??$1 >/dev/null 2>/dev/null
153       then       then
154    diff -Nur e-smith-base-5.8.0.old/createlinks e-smith-base-5.8.0/createlinks
155    --- e-smith-base-5.8.0.old/createlinks  2020-10-22 17:02:59.442000000 -0400
156    +++ e-smith-base-5.8.0/createlinks      2020-10-22 17:03:44.316000000 -0400
157    @@ -324,6 +324,7 @@
158     event_link("systemd-isolate", $event, "94");
159     event_link("reset-unsavedflag", $event, "95");
160    
161    +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/network");
162     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/wan");
163     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dhcpd");
164     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
165    diff -Nur e-smith-base-5.8.0.old/root/etc/e-smith/events/actions/fix-startup e-smith-base-5.8.0/root/etc/e-smith/events/actions/fix-startup
166    --- e-smith-base-5.8.0.old/root/etc/e-smith/events/actions/fix-startup  2020-10-22 17:02:59.317000000 -0400
167    +++ e-smith-base-5.8.0/root/etc/e-smith/events/actions/fix-startup      2020-10-22 17:16:25.871000000 -0400
168    @@ -21,11 +21,13 @@
169     my $sv=$service->{'name'};
170     next if $sv eq 'bootstrap-console';
171     $sv=  $equivalent->{$sv} || $sv;
172    -  if (-e "/lib/systemd/system/multi-user.target.wants/$sv.service")
173    +foreach (qw(multi-user sme-server))
174    +{
175    +  if (-e "/lib/systemd/system/$_.target.wants/$sv.service")
176       {
177         system(qw(systemctl disable), $sv);
178       }
179    -  elsif (-e "/etc/systemd/system/multi-user.target.wants/$sv.service")
180    +  elsif (-e "/etc/systemd/system/$_.target.wants/$sv.service")
181       {
182         system(qw(systemctl disable), $sv);
183       }
184    @@ -34,3 +36,4 @@
185         system("/usr/sbin/chkconfig", $sv, "off");
186       }
187     }
188    +}


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed