coreos-home-server/service/dovecot/systemd/dovecot-firstboot.target
Alex Palaistras 50249ba987 Use BindsTo in Dovecot first boot process
This is to avoid starting requisite units (specifically, the MariaDB
migrations) if conditions fail.
2023-10-22 00:19:52 +01:00

11 lines
262 B
SYSTEMD

[Unit]
Description=Initialize Dovecot POP3/IMAP Server
Wants=dovecot.service
BindsTo=mariadb-migrate@dovecot.service
After=mariadb-migrate@dovecot.service
Before=dovecot.service
ConditionKernelCommandLine=ignition.firstboot
[Install]
WantedBy=multi-user.target