--- rpms/e-smith-runit/sme10/e-smith-runit-2.6.0-systemd.patch 2016/03/23 13:48:03 1.1 +++ rpms/e-smith-runit/sme10/e-smith-runit-2.6.0-systemd.patch 2016/03/27 18:38:44 1.2 @@ -1,13 +1,3 @@ -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 2002-06-05 16:46:14.000000000 -0400 -+++ e-smith-runit-2.6.0/createlinks 2016-03-23 09:42:27.721000000 -0400 -@@ -21,3 +21,6 @@ - or die "Can't symlink to root/etc/e-smith/events/${event}/S${level}${action}:". - " $!"; - } -+ -+symlink("/usr/lib/systemd/system/runit.service", -+ "/usr/lib/systemd/system/multi-user.target.wants/runit.service") 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 1969-12-31 19:00:00.000000000 -0500 +++ e-smith-runit-2.6.0/root/usr/lib/systemd/system/runit.service 2016-03-23 09:36:00.468000000 -0400 @@ -26,3 +16,16 @@ diff -Nur e-smith-runit-2.6.0.old/root/u + +[Install] +WantedBy=multi-user.target +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 2002-06-05 16:46:14.000000000 -0400 ++++ e-smith-runit-2.6.0/createlinks 2016-03-27 14:21:12.386000000 -0400 +@@ -21,3 +21,9 @@ + or die "Can't symlink to root/etc/e-smith/events/${event}/S${level}${action}:". + " $!"; + } ++ ++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: $!";