Sven Hartge <[email protected]> wrote: > Preuße, Hilmar <[email protected]> wrote: >> Am 12.05.2026 um 13:28 schrieb Sven Hartge:
>>> 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? >>> >> I'm wondering, why you care at all. According to [1] the init script is >> part of the package, so I would expect that dpkg cares. You should stop >> delivering it in the package. > Extremely valid point, yes. > I somehow got it in my head that I need to clean this up manually > because I, for whatever reason, was of the opinion that just no longer > shipping it would not be enough. > So, yes, you are obviously right about that, just let dpkg deal with it. Unfortunately, dpkg does _not_ clean the init-script up itself, I just tested it. If I have radsecproxy installed and then install the version without the init-script in the DEB, it stays in /etc/init.d/ and "dpkg -L radsecproxy" even lists it as belonging to the package. Only new installs don't have the init-script, obviously. So it seems like I _do_ need to clean this up manually. Grüße, Sven. -- Sigmentation fault. Core dumped.

