/[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.1 - (show annotations) (download)
Sun Jan 3 06:17:23 2021 UTC (3 years, 5 months ago) by jpp
Branch: MAIN
* 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:11:13.683000000 -0500
4 @@ -22,10 +22,14 @@
5 " $!";
6 }
7
8 -foreach my $target (qw(multi-user sme-server basic))
9 +foreach my $target (qw(basic))
10 {
11 system('mkdir -p root/usr/lib/systemd/system/'.$target.'.target.wants/');
12 symlink("../runit.service",
13 "root/usr/lib/systemd/system/$target.target.wants/runit.service")
14 or die "Can't symlink to root/usr/lib/systemd/system/$target.target.wants/runit.service: $!";
15 }
16 +my $event="e-smith-runit-update";
17 +event_link("systemd-reload", $event, "89");
18 +event_link("systemd-default", $event, "88");
19 +safe_symlink("start", "root/etc/e-smith/events/$event/services2adjust/runit");
20 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
21 --- e-smith-runit-2.6.0.old/root/usr/lib/systemd/system/runit.service 2021-01-03 01:03:40.784000000 -0500
22 +++ e-smith-runit-2.6.0/root/usr/lib/systemd/system/runit.service 2021-01-03 01:11:50.454000000 -0500
23 @@ -12,4 +12,4 @@
24 TimeoutSec=0
25
26 [Install]
27 -WantedBy=multi-user.target sme-server.target
28 +WantedBy=basic.target

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