Skip to content

Commit

Permalink
Add a systemd service for squeezed RRD plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ydirson committed Aug 29, 2023
1 parent 5c965bb commit 8368574
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/xcp-metrics-plugin-squeezed/src/rrdp-squeezed.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8368574

Please sign in to comment.