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 2020-09-30 16:46:55.153000000 -0400 +++ e-smith-runit-2.6.0/createlinks 2020-09-30 16:54:38.004000000 -0400 @@ -22,8 +22,10 @@ " $!"; } -system('mkdir -p root/usr/lib/systemd/system/multi-user.target.wants/'); - unlink "root/usr/lib/systemd/system/multi-user.target.wants/runit.service"; -symlink("/usr/lib/systemd/system/runit.service", - "root/usr/lib/systemd/system/multi-user.target.wants/runit.service") - or die "Can't symlink to root/usr/lib/systemd/system/multi-user.target.wants/runit.service: $!"; +foreach my $target (qw(multi-user sme-server)) +{ +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: $!"; +}