summarylogtreecommitdiffstats
path: root/otelcol-contrib.service
diff options
context:
space:
mode:
authorRoger Coll2023-08-30 22:24:13 +0200
committerRoger Coll2023-08-30 22:24:13 +0200
commit504f5b1867d0d11ebac62a806d8ba519b69a1918 (patch)
tree28afa2cc35aed42d1bcc240b4fa76faed8bcd56f /otelcol-contrib.service
downloadaur-504f5b1867d0d11ebac62a806d8ba519b69a1918.tar.gz
feat: init otelcol-contrib package
Diffstat (limited to 'otelcol-contrib.service')
-rw-r--r--otelcol-contrib.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/otelcol-contrib.service b/otelcol-contrib.service
new file mode 100644
index 000000000000..453a571392f2
--- /dev/null
+++ b/otelcol-contrib.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=OpenTelemetry Collector Contrib
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/otelcol-contrib/otelcol-contrib.conf
+ExecStart=/usr/bin/otelcol-contrib $OTELCOL_OPTIONS
+KillMode=mixed
+Restart=on-failure
+Type=simple
+User=otelcol-contrib
+Group=otelcol-contrib
+
+[Install]
+WantedBy=multi-user.target