Hi Sven,

Le Tue, May 12, 2026 at 01:28:52PM +0200, Sven Hartge a écrit :
> 
> I am putting together a new version of my radsecproxy package which will
> make usage of the instance feature from systemd.
> 
> The old Sys-V init-script does not really work for that anymore and I
> would like to remove it on upgrade.
> 
> Before I now shoot myself (and others) into an appendage, this question
> here: What is the best (and safest) way of doing this?
> 
> Is it really as easy as having 
> 
> if [ "$1" = "configure" ]; then
>   if [ -e /etc/init.d/radsecproxy ]; then
>       rm /etc/init.d/radsecproxy
>   fi
> fi
> 
> in my postinst?

You could also consider contacting the people maintaining the
orphan-sysvinit-scripts package, e.g. via a bug to that package.

"This package provides System-V init scripts for packages whose maintainers
have chosen to drop them from the distribution in favour of only supplying
a systemd service file."

See also https://salsa.debian.org/matthew/orphan-sysvinit-scripts .

Bye,

Joost

Reply via email to