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 |