diff options
author | Dmitry Bogatov <KAction@gnu.org> | 2016-09-03 20:01:19 +0300 |
---|---|---|
committer | Dmitry Bogatov <KAction@gnu.org> | 2016-09-03 20:01:19 +0300 |
commit | 8ff72d717c3634204653ebccc0913691b2dbd562 (patch) | |
tree | d3408c48449c0060c371cb6840842c8b0c2cd2c2 /dh_runit | |
parent | 0319b273e2ea6cca679adc72c5d49e2ded1e989e (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-x | dh_runit | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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/"); |