dh_installsystemd - why deactivate services in postrm instead of prerm?

Michael Biebl biebl at debian.org
Wed Jun 27 18:48:17 BST 2018


Hi Daniele

Am 27.06.2018 um 19:39 schrieb Daniele Nicolodi:
> Hello,
> 
> I'm working on dh_installsystemduser, the equivalent of
> dh_installsystemd for user instance systemd units. In the process I'm
> trying to understand why dh_installsystemd works the way it does.
> 
> dh_installsystemd generates maintainer scripts code blocks that
> deactivates installed unit. Why is it that done at postrm stage and not
> at prerm stage? It seems that the later is the most common place where
> to clean up on package removal, but I'm probably missing something.
> 

Which part exactly do you mean? The bits that mask a service?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180627/56681642/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list