From c870dcaa53988f709b1152221e76992972365fb5 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Wed, 23 May 2018 08:23:08 +0300 Subject: Do not re-enable serice on upgrade * Do not make symbolic link /etc/runit/runsvdir/default/$name -> /etc/sv/$name part of package files {in which case it will be unconditionally created on upgrade}; instead manage it in maintainer scripts: create it in postinst script on fresh install and remove on purge/remove in postrm. * Force versioned dependency on runit-helper, to make sure that versioned dependency on dh-runit would close #899242 --- postinst-runit | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 postinst-runit (limited to 'postinst-runit') diff --git a/postinst-runit b/postinst-runit new file mode 100644 index 0000000..6110707 --- /dev/null +++ b/postinst-runit @@ -0,0 +1,12 @@ +# -*- shell-script -*- +export NAME='#NAME#' +export ENABLE='#ENABLE#' + +# Unlike postrm, I can be sure, that runit-helper is present on +# postinst. +/lib/runit-helper/runit-helper postinst "$@" + +# Local Variables: +# eval: (sh-set-shell "sh" t nil) +# End: +# vim: ft=sh:sw=4 -- cgit v1.2.3