summaryrefslogtreecommitdiff
path: root/dh_runit
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@gnu.org>2016-09-03 20:01:19 +0300
committerDmitry Bogatov <KAction@gnu.org>2016-09-03 20:01:19 +0300
commit8ff72d717c3634204653ebccc0913691b2dbd562 (patch)
treed3408c48449c0060c371cb6840842c8b0c2cd2c2 /dh_runit
parent0319b273e2ea6cca679adc72c5d49e2ded1e989e (diff)
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.
Diffstat (limited to 'dh_runit')
-rwxr-xr-xdh_runit3
1 files changed, 2 insertions, 1 deletions
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}}) {
74 install_dir("$tmp/var/lib/runit/supervise/$name"); 74 install_dir("$tmp/var/lib/runit/supervise/$name");
75 75
76 if ($conf->{enable}) { 76 if ($conf->{enable}) {
77 runit_autoscript($pkg, 'postinst', "s/#NAME#/$name/"); 77 make_symlink("/etc/runit/runsvdir/default/$name",
78 "/etc/sv/$name", $tmp);
78 } 79 }
79 runit_autoscript($pkg, 'prerm', "s/#NAME#/$name/"); 80 runit_autoscript($pkg, 'prerm', "s/#NAME#/$name/");
80 runit_autoscript($pkg, 'postrm', "s/#NAME#/$name/"); 81 runit_autoscript($pkg, 'postrm', "s/#NAME#/$name/");