> > ln -s /etc/runit/runsvdir/current "$T/service"
Note this should have read:
ln -s runit/runsvdir/current "$T/service"
> Overall it seems that if do that automatically too many things can
> go wrong. However the code can be used as an example in the NEWS,
> so thanks for sharing and test it!
If there's no appetite to attempt the migration automatically then
the preinst script will need to continue to support the case where
/etc/service is a directory.
--- runit.preinst.orig 2024-03-22 23:18:48.000000000 +0000
+++ runit.preinst 2024-04-21 19:16:18.011931776 +0000
@@ -14,7 +14,7 @@
if [ ! -e /etc/service ]; then #new install
ln -s /etc/runit/runsvdir/current /etc/service
-else
+elif [ -h /etc/service ]; then
servlink=$(readlink /etc/service) # should be
/etc/runit/runsvdir/current
if [ "$servlink" != '/etc/runit/runsvdir/current' ]; then
# transition to enable runsvchdir, started in 2.1.2-28, to be
removed in future:
Should do the trick.
--
Jamie Heilman http://audible.transient.net/~jamie/