Control: tag -1 - moreinfo + confirmed

20.11.2025 09:38, Michael Tokarev wrote:

Interesting.  I tested this configuration and it worked,
but I don't claim I understand this relation well.

Does `systemctl restart postfix` restarts your postfix@inbound
instance too?  If it does, how about `systemctl stop postfix`
followed by `systemctl start postfix` ?  I geuss the latter is
the problem.

Ok, I see what's going on here.  I did test `restart`, but ended
up using `stop` and `start`. And the latter, indeed, does not
start all enabled but not running secondary instances.  Initially
I tried to use `restart` here (which works) but ended up using
separate stop+start, because sometimes you can't upgrade postfix
while it is running (when internal protocol changes for example,
which happened between 3.9 and 3.10).

I probably can add WantedBy=postfix.service into [email protected],
but this will make all instances inter-dependent (they already
sort of are, due to PartOf=postfix.service).

An alternative would be to check in preinst which instances are
running, and (re)start them in postinst.

So I don't yet know how to solve it properly.

Thanks,

/mjt

Reply via email to