Skip to content

Instantly share code, notes, and snippets.

@grchen
grchen / GitHub相关资源.md
Last active Apr 16, 2017
GitHub相关资源
View GitHub相关资源.md
@grchen
grchen / archtimer.md
Last active May 7, 2017
arch linux增加定式任务
View archtimer.md

在 Arch Linux 上,我们通过 systemd 来自动执行证书续期任务。


$ sudo vim /etc/systemd/system/letsencrypt.service
[Unit]
Description=Let's Encrypt renewal

[Service]
Type=oneshot  
ExecStart=/usr/bin/certbot renew --quiet --agree-tos  
ExecStartPost=/bin/systemctl reload nginx.service  
You can’t perform that action at this time.