From 72574f4e545dcabec4555d69c9a88e98a259c166 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 23 Feb 2015 18:54:47 +0000 Subject: [PATCH] runit-swap: create supervise symlink --- srcpkgs/runit-swap/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/runit-swap/template b/srcpkgs/runit-swap/template index 8ab9542235b..c036f350344 100644 --- a/srcpkgs/runit-swap/template +++ b/srcpkgs/runit-swap/template @@ -1,7 +1,7 @@ # Template file for 'runit-swap' pkgname=runit-swap version=1.1.0 -revision=1 +revision=2 build_style=meta depends="runit bash util-linux>=2.26" hostmakedepends="git" @@ -20,7 +20,15 @@ do_fetch() { do_install() { vinstall runit-swap.sh 755 usr/sbin vconf runit-swap.conf + vinstall swap/run 755 etc/sv/runit-swap vinstall swap/finish 755 etc/sv/runit-swap + # this code was adapted from _vsv function in "common/environment/setup/install.sh" + ln -s /run/runit/supervise.runit-swap ${PKGDESTDIR}/etc/sv/runit-swap/supervise + if [ -r ${PKGDESTDIR}/etc/sv/runit-swap/log/run ]; then + chmod 755 ${PKGDESTDIR}/etc/sv/runit-swap/log/run + ln -s /run/runit/supervise.runit-swap-log ${PKGDESTDIR}/etc/sv/runit-swap/log/supervise + fi + vinstall 90-runit-swap.conf 644 usr/lib/modprobe.d }