systemd unit files support preserving existing environment variables?
(Something similar to
Not referring to
It would be be useful if
systemd could for example leave the
DPKG_MAINTSCRIPT_PACKAGE environment variable intact. Then the service had a chance to determine wheter it was restarted as part of a an upgrade (
dpkg set the
DPKG_MAINTSCRIPT_PACKAGEenvironment variable.) vs manually/at boot.