From 6dbf04260e2a63e9b3f7241ca2e8a64113a28e3d Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 30 Mar 2020 14:05:27 +0300 Subject: meta: install sysmgr services as well as runit services --- core/busybox/build | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'core/busybox') diff --git a/core/busybox/build b/core/busybox/build index cf68c6aa..7ea1dafc 100755 --- a/core/busybox/build +++ b/core/busybox/build @@ -31,15 +31,12 @@ done # Set suid on busybox suid. chmod u+s "$1/usr/bin/busybox-suid" -# Install runit services -install -Dm755 crond.run "$1/etc/sv/crond/run" -install -Dm755 ntpd.run "$1/etc/sv/ntpd/run" -install -Dm755 syslogd.run "$1/etc/sv/syslogd/run" -install -Dm755 acpid.run "$1/etc/sv/acpid/run" -ln -s /run/runit/supervise.crond "$1/etc/sv/crond/supervise" -ln -s /run/runit/supervise.ntpd "$1/etc/sv/ntpd/supervise" -ln -s /run/runit/supervise.syslogd "$1/etc/sv/syslogd/supervise" -ln -s /run/runit/supervise.acpid "$1/etc/sv/acpid/supervise" +# Install runit and sysmgr services +for service in crond.run ntpd.run syslogd.run acpid.run ; do + install -Dm755 "$service" "$1/etc/sv/${service%.*}/run" + install -Dm755 "$service" "$1/etc/sysmgr/${service%.*}" + ln -s /run/runit/supervise.${service%.*} "$1/etc/sv/${service%.*}/supervise" +done # Install ntp config install -Dm644 ntp.conf "$1/etc/ntp.conf" -- cgit v1.2.3