From 1c04969eb457a9f4bd52e983ed17df553f1addba Mon Sep 17 00:00:00 2001 From: allddd <117767298+allddd@users.noreply.github.com> Date: Fri, 6 Sep 2024 20:08:31 +0200 Subject: [PATCH] add information on how to disable acme.sh timestamps, as journald already provides this functionality --- Using-systemd-units-instead-of-cron.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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