Marc Haber:
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

[...]

Hi Marc,

To my knowledge, people use `systemd-tmpfiles` for creating/chown file system items not shipped in the `.deb`.

This limitation of not being able to "act between" parts of the debhelper provided maintscripts has existed since the invention of debhelper and the design of debhelper is not built around giving the maintainer flexibility. I do not see myself fixing that.

Best regards,
Niels

Reply via email to