On Sun, Jun 30, 2024 at 10:39:06AM +0200, lorenzo wrote: > Dear Mentors, > > in runit, services are defined as directories with files inside and > I'm not sure what exactly can or can't be done when a package has to > purge a service: > > if the service is below /etc, files provided by the package can > be removed even if modified,
Normally no. > but the directory can't be removed if there are extra files inside. > Correct? Just leave this to dpkg. Unless by "files provided by the package" you don't mean files (and directories) actually shipped inside the package. > if the service is below /usr (or /var or /run) "/usr (or /var or /run)" sounds wrong, those are very different cases. > instead the directory can be removed entirely, disregarding extra files ? This sounds very wrong in general. > what if the service is in /home, like in user-services ? maybe symlinks > and empty directories (created by the package) can be removed, but not > files? Maintainer scripts must not touch /home. -- WBR, wRAR
signature.asc
Description: PGP signature