Re: certbot a systemd... au... vlastne systemd au

Vladimír Macek <[email protected]>
Newsgroups gmane.linux.region.czech
Message-ID <[email protected]>
On 18. 10. 18 9:21, Adam Pribyl wrote:
> Mimochodem jak resite to, ze kazde 3 mesice dojde ke zmene certifikatu,
> coz sluzby jako postfix a dovecot nerozdychaji. Sem to vyresil zase cron 
> jobem a reloadem, ale kdyby nekdo mel lepsi reseni...


No neco takhle by mohlo pomoct. Maly denni cron skriptik obsahujici radky
jako je tento:

dovecot_cert_file="`grep ^ssl_cert /etc/dovecot/dovecot.conf | cut -d'<' -f2-`"
[ /var/run/dovecot/master.pid -ot "$dovecot_cert_file" ] \
&& echo Reloading dovecot for new cert \
&& /etc/init.d/dovecot reload

Musi se otestovat, jestli staci reload nebo je treba restart.

V.


_______________________________________________
Linux mailing list
[email protected]
http://www.linux.cz/mailman/listinfo/linux
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.