Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | Dernière révision Les deux révisions suivantes | ||
linux:systemd [26-10-2017 21:18] edmc73 |
linux:systemd [12-11-2018 09:52] edmc73 [Timer] |
||
---|---|---|---|
Ligne 34: | Ligne 34: | ||
WantedBy=timers.target | WantedBy=timers.target | ||
</ | </ | ||
+ | |||
+ | Script venant de l' | ||
+ | <code bash> | ||
+ | [Unit] | ||
+ | Description=This is the timer to set the schedule for automated renewals | ||
+ | |||
+ | [Timer] | ||
+ | OnCalendar=daily | ||
+ | RandomizedDelaySec=6hours | ||
+ | Persistent=true | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
and certbot.service will execute the renew command. | and certbot.service will execute the renew command. | ||
Ligne 49: | Ligne 67: | ||
PrivateTmp=true | PrivateTmp=true | ||
</ | </ | ||
+ | |||
+ | Script venant de l' | ||
+ | <code bash> | ||
+ | [Unit] | ||
+ | Description=This service automatically renews any certbot certificates found | ||
+ | |||
+ | [Service] | ||
+ | EnvironmentFile=/ | ||
+ | Type=oneshot | ||
+ | ExecStart=/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | Surtout de pas oublier d' | ||
+ | systemctl enable certbot-renew.timer | ||
+ | systemctl start certbot-renew.timer | ||
+ | systemctl status certbot-renew.timer |