diff -Nur e-smith-runit-2.6.0.old/createlinks e-smith-runit-2.6.0/createlinks --- e-smith-runit-2.6.0.old/createlinks 2021-01-03 01:03:40.781000000 -0500 +++ e-smith-runit-2.6.0/createlinks 2021-01-03 01:26:17.763000000 -0500 @@ -1,5 +1,5 @@ #!/usr/bin/perl -w - +use esmith::Build::CreateLinks qw(:all); sub panel_link { my ($function, $panel) = @_; @@ -11,7 +11,7 @@ "/cgi-bin/$function: $!"; } -sub event_link +sub event_link2 { my ($action, $event, $level) = @_; @@ -22,10 +22,14 @@ " $!"; } -foreach my $target (qw(multi-user sme-server basic)) +foreach my $target (qw(basic)) { system('mkdir -p root/usr/lib/systemd/system/'.$target.'.target.wants/'); symlink("../runit.service", "root/usr/lib/systemd/system/$target.target.wants/runit.service") or die "Can't symlink to root/usr/lib/systemd/system/$target.target.wants/runit.service: $!"; } +my $event="e-smith-runit-update"; +event_link("systemd-reload", $event, "89"); +event_link("systemd-default", $event, "88"); +safe_symlink("start", "root/etc/e-smith/events/$event/services2adjust/runit"); 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 --- e-smith-runit-2.6.0.old/root/usr/lib/systemd/system/runit.service 2021-01-03 01:03:40.784000000 -0500 +++ e-smith-runit-2.6.0/root/usr/lib/systemd/system/runit.service 2021-01-03 01:11:50.454000000 -0500 @@ -12,4 +12,4 @@ TimeoutSec=0 [Install] -WantedBy=multi-user.target sme-server.target +WantedBy=basic.target