From f4b80cb1e49002c5a4e834513c127129db417803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 17 Apr 2022 10:40:30 +0200 Subject: [PATCH] Explicitly set the configuration file and logging mode --- contrib/systemd/acmed.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/systemd/acmed.service b/contrib/systemd/acmed.service index 5cc5f5a..c527a1c 100644 --- a/contrib/systemd/acmed.service +++ b/contrib/systemd/acmed.service @@ -1,6 +1,7 @@ [Unit] Description=ACME client daemon After=network.target +ConditionPathExists=/etc/acmed/acmed.toml Documentation=man:acmed.toml(5) man:acmed(8) https://github.com/breard-r/acmed/wiki [Service] @@ -12,8 +13,7 @@ WorkingDirectory=/var/lib/acmed RuntimeDirectory=acmed # daemon handling: start, stop, timeouts -#ExecStart=/usr/bin/acmed --foreground --pid-file /run/acmed/acmed.pid --log-level trace --log-stderr -ExecStart=/usr/bin/acmed --foreground --pid-file /run/acmed/acmed.pid --log-level info +ExecStart=/usr/bin/acmed --foreground --config /etc/acmed/acmed.toml --pid-file /run/acmed/acmed.pid --log-syslog --log-level info TimeoutStartSec=3 TimeoutStopSec=5 Restart=on-failure