pmg-api/debian/pmgsync.service
Thomas Lamprecht 01c5b2318b pmgsync.service: really order before postfix@-.service
followup for commit 0c4cf3f2cf
which assumed that we can order on templated base units, which we
cannot (at least under the systemd version of buster). So depend on
the actual instance of the main postfix template.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-24 08:59:21 +02:00

32 lines
685 B
Desktop File

[Unit]
Description=Sync Proxmox Configuration
ConditionPathExists=/usr/bin/pmgdb
ConditionPathExists=/usr/bin/pmgconfig
DefaultDependencies=no
Wants=remote-fs.target
After=remote-fs.target
Wants=postgresql.service
After=postgresql.service
Before=postfix.service
Before=postfix@-.service
Before=clamav-daemon.service
Before=clamav-freshclam.service
Before=pmgdaemon.service
Before=fetchmail.service
Before=pmgpolicy.service
Before=pmgproxy.service
Before=pmg-smtp-filter.service
Before=pmgmirror.service
[Service]
ExecStart=/usr/bin/pmgdb init
ExecStart=/usr/bin/pmgconfig init
ExecStart=/usr/bin/pmgconfig sync
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target