diff --git a/Using-systemd-units-instead-of-cron.md b/Using-systemd-units-instead-of-cron.md index 66e2b04..1c280f9 100644 --- a/Using-systemd-units-instead-of-cron.md +++ b/Using-systemd-units-instead-of-cron.md @@ -13,13 +13,21 @@ SyslogIdentifier=acme.sh ExecStart=/path/to/acme.sh --cron --home /path/to/acme.sh ``` -**2. Test that it works before creating the timer:** +**2. Disable timestamps (optional):** + +`/path/to/acme.sh/account.conf` +``` +NO_TIMESTAMP='1' +``` + +**3. Test that it works before creating the timer:** ``` sudo systemctl daemon-reload sudo systemctl start acme_letsencrypt +journalctl -u acme_letsencrypt.service ``` -**3. Create systemd timer unit for the service above:** +**4. Create systemd timer unit for the service above:** `/etc/systemd/system/acme_letsencrypt.timer` ``` @@ -35,7 +43,7 @@ Persistent=true WantedBy=timers.target ``` -**4. Enable timer:** +**5. Enable timer:** ``` sudo systemctl start acme_letsencrypt.timer sudo systemctl enable acme_letsencrypt.timer