From 83685744496bf006ea599587c40c0277cec1f153 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Tue, 29 Aug 2023 18:20:58 +0200 Subject: [PATCH] Add a systemd service for squeezed RRD plugin --- .../src/rrdp-squeezed.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugins/xcp-metrics-plugin-squeezed/src/rrdp-squeezed.service diff --git a/plugins/xcp-metrics-plugin-squeezed/src/rrdp-squeezed.service b/plugins/xcp-metrics-plugin-squeezed/src/rrdp-squeezed.service new file mode 100644 index 0000000..08a8e49 --- /dev/null +++ b/plugins/xcp-metrics-plugin-squeezed/src/rrdp-squeezed.service @@ -0,0 +1,16 @@ +[Unit] +Description=XCP-metrics RRD daemon squeezed plugin +After=xcp-rrdd.service +Requires=xcp-rrdd.service +Conflicts=xcp-rrdd-squeezed.service + +[Service] +ExecStart=/opt/xensource/libexec/xcp-rrdd-plugins/rrdp-squeezed +StandardError=null +# restart but fail if more than 5 failures in 30s +Restart=on-failure +StartLimitBurst=5 +StartLimitInterval=30s + +[Install] +WantedBy=multi-user.target