From 8e6c1efc9405ca729ea8003dcb34fc37e4262f5e Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 12 Feb 2023 21:50:01 +0900 Subject: [PATCH] Modify `systemd` service files. --- .../files/etc/systemd/system/vector-filestat_exporter.service | 4 ++-- .../files/etc/systemd/system/vector-node_exporter.service | 4 ++-- .../files/etc/systemd/system/vector-prometheus.service | 4 ++-- .../files/etc/systemd/system/vector-snmp_exporter.service | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cookbooks/prometheus-exporters/files/etc/systemd/system/vector-filestat_exporter.service b/cookbooks/prometheus-exporters/files/etc/systemd/system/vector-filestat_exporter.service index 5cc135d..f060904 100644 --- a/cookbooks/prometheus-exporters/files/etc/systemd/system/vector-filestat_exporter.service +++ b/cookbooks/prometheus-exporters/files/etc/systemd/system/vector-filestat_exporter.service @@ -8,8 +8,8 @@ Requires=network-online.target ExecStart=/usr/bin/vector --config /etc/vector/filestat_exporter.toml ExecReload=/bin/kill -HUP $MAINPID Restart=always -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal SyslogIdentifier=vector [Install] diff --git a/cookbooks/prometheus-exporters/files/etc/systemd/system/vector-node_exporter.service b/cookbooks/prometheus-exporters/files/etc/systemd/system/vector-node_exporter.service index 5474332..d5679db 100644 --- a/cookbooks/prometheus-exporters/files/etc/systemd/system/vector-node_exporter.service +++ b/cookbooks/prometheus-exporters/files/etc/systemd/system/vector-node_exporter.service @@ -8,8 +8,8 @@ Requires=network-online.target ExecStart=/usr/bin/vector --config /etc/vector/node_exporter.toml ExecReload=/bin/kill -HUP $MAINPID Restart=always -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal SyslogIdentifier=vector [Install] diff --git a/cookbooks/prometheus/files/etc/systemd/system/vector-prometheus.service b/cookbooks/prometheus/files/etc/systemd/system/vector-prometheus.service index b1d0eb7..52a3c29 100644 --- a/cookbooks/prometheus/files/etc/systemd/system/vector-prometheus.service +++ b/cookbooks/prometheus/files/etc/systemd/system/vector-prometheus.service @@ -8,8 +8,8 @@ Requires=network-online.target ExecStart=/usr/bin/vector --config /etc/vector/prometheus.toml ExecReload=/bin/kill -HUP $MAINPID Restart=always -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal SyslogIdentifier=vector [Install] diff --git a/cookbooks/prometheus/files/etc/systemd/system/vector-snmp_exporter.service b/cookbooks/prometheus/files/etc/systemd/system/vector-snmp_exporter.service index cb33a7d..96a781a 100644 --- a/cookbooks/prometheus/files/etc/systemd/system/vector-snmp_exporter.service +++ b/cookbooks/prometheus/files/etc/systemd/system/vector-snmp_exporter.service @@ -8,8 +8,8 @@ Requires=network-online.target ExecStart=/usr/bin/vector --config /etc/vector/snmp_exporter.toml ExecReload=/bin/kill -HUP $MAINPID Restart=always -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal SyslogIdentifier=vector [Install]