#1101979 runit: remove legacy/unused code

Package:
runit
Source:
runit
Description:
system-wide service supervision
Submitter:
Lorenzo Puliti
Date:
2026-05-14 15:35:01 UTC
Severity:
normal
#1101979#5
Date:
2025-04-03 12:47:41 UTC
From:
To:
[after Trixie]
please remember to remove legacy and unused code from runit:
(double check that are really no longer used anywhere, for example runit-helper)

/usr/lib/runit/finish-default

/usr/lib/runit/make_svlinks

/usr/lib/runit/sv_wtime

/usr/lib/runit-init symlink, introduced in 2.2.0-2

[after user-services]
also check if
/usr/sbin/mk-runscript
is still useful

Lorenzo

#1101979#10
Date:
2025-12-09 07:02:23 UTC
From:
To:
at least this one requires an update in runit-helper
that still use it (although is guarded).

also in cpsv, code that looks for an equivalent systemd or sysv
to sync services could be dropped if the "binfile method" is
documented

#1101979#15
Date:
2026-05-14 15:32:55 UTC
From:
To:
also, when supervise targets (dirs) were moved from /var into
/run the runit package never did a cleanup of /var.
We should attempt a clean up on upgrade (postinst) of the following:

/var/lib/supervise/*
/var/lib/runit/supervise/*

but make sure to check that there is no runsv process still using the
directory before removing it, for example

for supervise in /var/lib/supervise/* /var/lib/runit/supervise/* ; do
	#should not list as removable if there is a service active on this supervise dir
	if which chpst > /dev/null ; then
		if chpst -L "$supervise"/lock true 2>/dev/null ; then
			echo "$supervise"
		else
			continue #supervise is used by a runsv process, can't be removed
		fi
	elif which flock >/dev/null ; then # fallback on flock
		if flock -F -n "$supervise"/lock true ; then
			echo "$supervise"
		else
			continue
		fi
	else #wtf, Hurd port?  without runit installed
		echo "unreliable: $supervise"
	fi
done

and the top dir itself ( /var/lib/supervise, var/lib/runit/supervise )
can't be removed because there could be some service that still uses it
even if temporary disabled, so this requires a NEWS entry