/[smeserver]/rpms/e-smith-runit/sme10/e-smith-runit-2.6.0-bz11156-update.patch
ViewVC logotype

Contents of /rpms/e-smith-runit/sme10/e-smith-runit-2.6.0-bz11156-update.patch

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


Revision 1.2 - (show annotations) (download)
Sun Jan 3 06:37:05 2021 UTC (3 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-runit-2_6_0-12_el7_sme, e-smith-runit-2_6_0-11_el7_sme, e-smith-runit-2_6_0-10_el7_sme, HEAD
Changes since 1.1: +17 -1 lines
* Sun Jan 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme
- create e-smith-runit-update event [SME: 11156]
  also tidy target wantedby: should run from basic.target

1 diff -Nur e-smith-runit-2.6.0.old/createlinks e-smith-runit-2.6.0/createlinks
2 --- e-smith-runit-2.6.0.old/createlinks 2021-01-03 01:03:40.781000000 -0500
3 +++ e-smith-runit-2.6.0/createlinks 2021-01-03 01:26:17.763000000 -0500
4 @@ -1,5 +1,5 @@
5 #!/usr/bin/perl -w
6 -
7 +use esmith::Build::CreateLinks qw(:all);
8 sub panel_link
9 {
10 my ($function, $panel) = @_;
11 @@ -11,7 +11,7 @@
12 "/cgi-bin/$function: $!";
13 }
14
15 -sub event_link
16 +sub event_link2
17 {
18 my ($action, $event, $level) = @_;
19
20 @@ -22,10 +22,14 @@
21 " $!";
22 }
23
24 -foreach my $target (qw(multi-user sme-server basic))
25 +foreach my $target (qw(basic))
26 {
27 system('mkdir -p root/usr/lib/systemd/system/'.$target.'.target.wants/');
28 symlink("../runit.service",
29 "root/usr/lib/systemd/system/$target.target.wants/runit.service")
30 or die "Can't symlink to root/usr/lib/systemd/system/$target.target.wants/runit.service: $!";
31 }
32 +my $event="e-smith-runit-update";
33 +event_link("systemd-reload", $event, "89");
34 +event_link("systemd-default", $event, "88");
35 +safe_symlink("start", "root/etc/e-smith/events/$event/services2adjust/runit");
36 diff -Nur e-smith-runit-2.6.0.old/root/usr/lib/systemd/system/runit.service e-smith-runit-2.6.0/root/usr/lib/systemd/system/runit.service
37 --- e-smith-runit-2.6.0.old/root/usr/lib/systemd/system/runit.service 2021-01-03 01:03:40.784000000 -0500
38 +++ e-smith-runit-2.6.0/root/usr/lib/systemd/system/runit.service 2021-01-03 01:11:50.454000000 -0500
39 @@ -12,4 +12,4 @@
40 TimeoutSec=0
41
42 [Install]
43 -WantedBy=multi-user.target sme-server.target
44 +WantedBy=basic.target

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