From 703bf78977b96c9c15992a8c75991b16beedaa83 Mon Sep 17 00:00:00 2001 From: Cyrille Giquello Date: Wed, 10 May 2023 20:40:51 +0200 Subject: [PATCH] make hostname available in notification template ;-) systemd define %H as the hostname. The hostname is human readable in notification message ;-) --- debian/crowdsec.service | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/crowdsec.service b/debian/crowdsec.service index 8743a03bced..3524b67a0bc 100644 --- a/debian/crowdsec.service +++ b/debian/crowdsec.service @@ -5,6 +5,7 @@ After=syslog.target network.target remote-fs.target nss-lookup.target [Service] Type=notify Environment=LC_ALL=C LANG=C +Environment=HOSTNAME=%H ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml #ExecStartPost=/bin/sleep 0.1