summaryrefslogtreecommitdiff
path: root/postinst-runit
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@gnu.org>2018-05-23 08:23:08 +0300
committerDmitry Bogatov <KAction@gnu.org>2018-05-27 11:13:01 +0300
commitc870dcaa53988f709b1152221e76992972365fb5 (patch)
treefc056e71e6208daeb60335d9f0d543674f34887e /postinst-runit
parent9376da82f5ae0b68c361c314b8af09ab56229671 (diff)
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
Diffstat (limited to 'postinst-runit')
-rw-r--r--postinst-runit12
1 files changed, 12 insertions, 0 deletions
diff --git a/postinst-runit b/postinst-runit
new file mode 100644
index 0000000..6110707
--- /dev/null
+++ b/postinst-runit
@@ -0,0 +1,12 @@
1# -*- shell-script -*-
2export NAME='#NAME#'
3export ENABLE='#ENABLE#'
4
5# Unlike postrm, I can be sure, that runit-helper is present on
6# postinst.
7/lib/runit-helper/runit-helper postinst "$@"
8
9# Local Variables:
10# eval: (sh-set-shell "sh" t nil)
11# End:
12# vim: ft=sh:sw=4