]> git.proxmox.com Git - pmg-api.git/commit
pmgsync.service: order before postfix@.service
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 23 Apr 2020 08:21:16 +0000 (10:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Apr 2020 11:23:30 +0000 (13:23 +0200)
commit0c4cf3f2cfa2b40d4fb1ded7501989b884c73eae
tree42b6a44a279cddf88153b68463c589171027a7b2
parent04596242907006ced5eff34bb0e0afd3b0a9aa73
pmgsync.service: order before postfix@.service

pmgsync.service updates the database-schema (pmgdb init) and generates and
updates configuration files from the templates and reloads the respective
services.

When first booting up after installation, it adapts the config from what's
shipped in the default debian packages for the first time.

The postfix configuration is also rendered, including settings where a
restart is necessary (listening on the internal port (26)).

While the unit already starts before postfix.service, the postfix service
files are designed to start multiple instances of postfix via instantiation
(by default postfix@-.service is the single instance (and the service file
which actually starts postfix)).

Since both pmgsync and postfix@- have no ordering relation between them, they
are started in parallel, which leads to postfix starting with the stock config
upon first boot.

Tested by running the installer in debug mode and applying this patch in the
last debug shell.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
debian/pmgsync.service