]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Add syslog identifier to service file 10795/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 5 Oct 2021 07:40:32 +0000 (09:40 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 5 Oct 2021 07:40:32 +0000 (09:40 +0200)
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/dnsdist.service.in

index a9f4433f205a57aaca5075e7d5d03410ea9fae85..76260871af0e0709c556f65243d0346d893a039b 100644 (file)
@@ -523,6 +523,7 @@ endif
 dnsdist@.service: dnsdist.service
        $(AM_V_GEN)sed -e 's!/dnsdist !&--config $(sysconfdir)/dnsdist-%i.conf !' \
          -e 's!RuntimeDirectory=.*!&-%i!' \
+         -e 's!SyslogIdentifier=.*!&-%i!' \
          < $< >$@
 
 systemdsystemunitdir = $(SYSTEMD_DIR)
index 3e521f22a8a3077a403e429e08b75caa35995016..bb11a26dd7e3c6e1f32d90bd9071f39cb673a451 100644 (file)
@@ -11,6 +11,7 @@ ExecStartPre=@bindir@/dnsdist --check-config
 ExecStart=@bindir@/dnsdist --supervised --disable-syslog
 User=@service_user@
 Group=@service_group@
+SyslogIdentifier=dnsdist
 Type=notify
 Restart=on-failure
 RestartSec=2