From 8ff72d717c3634204653ebccc0913691b2dbd562 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sat, 3 Sep 2016 20:01:19 +0300 Subject: Do not create symbolic link in /etc/runit/runsvdir/ in maintainer script, make it part of binary package. It makes sure, that dpkg will make right thing. --- dh_runit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dh_runit') diff --git a/dh_runit b/dh_runit index 5dbbb6e..37a24c0 100755 --- a/dh_runit +++ b/dh_runit @@ -74,7 +74,8 @@ PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) { install_dir("$tmp/var/lib/runit/supervise/$name"); if ($conf->{enable}) { - runit_autoscript($pkg, 'postinst', "s/#NAME#/$name/"); + make_symlink("/etc/runit/runsvdir/default/$name", + "/etc/sv/$name", $tmp); } runit_autoscript($pkg, 'prerm', "s/#NAME#/$name/"); runit_autoscript($pkg, 'postrm', "s/#NAME#/$name/"); -- cgit v1.2.3