reloading postfix after certificate-renew

pmf

New Member
Nov 21, 2019
1
0
1
47
is there a smart way to reload postfix after the certificates have been renewed? i understand that pve-daily-update.timer starts pve-daily-update.service which runs /usr/bin/pveupdate. but there is no renew-hook-option like in certbot (as far as i can see).

so change pve-daily-update.service and use something like ExecStartPost and reload postfix daily? or are there better ways to do this?

thanks in advance.
 
so change pve-daily-update.service and use something like ExecStartPost and reload postfix daily? or are there better ways to do this?
This works as long as the unit file isn't updated. Maybe a separate cronjob/systemd-timer with a small script might help.