Hi, thanks for changing the documentation. This has however made me wonder whether it makes sense this way.
The new docs basically say "put #DEBHELPER# as far to the top of your script, but remember that #DEBHELPER# will start the service." This puts the package maintainer between a rock and a hard place considering systemd-sysusers. Imagine that my postinst must - create the user - chown some directories and files to the user - and then only start the service. This cannot currently be done since #DEBHELPER# creates the user AND immediately starts the service. Am I missing something here? Greetings Marc On Wed, Jun 07, 2023 at 07:44:01PM +0200, Marc Haber wrote: > Hi, > > traditionally, I have placed my #DEBHELPER# marker last in my maintainer > scripts. I think that many package maintainers do it that way. > > This doesnt work if systemd-sysusers and dh_installsysusers is used > since the account will be created only in the #DEBHELPER# code, so > maintainer script code using the account needs to be after the > #DEBHELPER# marker. This is a somewhat surprising change if adduser was > used previously. > > I am not even sure whether there does debhelper code exist that needs > to be "late" in the process. > > Please elaborate a bit about correct / preferred placement of > #DEBHELPER# in maintainer scripts in debhelper(7) to keep other people > from falling in that trap. > > Greetings > Marc

