diff options
author | dakkar <dakkar@thenautilus.net> | 2025-02-14 18:41:09 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2025-02-14 18:41:09 +0000 |
commit | 465296e20c0ba95e05882242c69f04c342818ef5 (patch) | |
tree | c9a68614c94681cc326945254d00dfc0415aa15d /app-metrics/smartctl_exporter/files/smartctl_exporter.service | |
parent | probably correct pgroonga ebuild (diff) | |
download | gentoo-overlay-465296e20c0ba95e05882242c69f04c342818ef5.tar.gz gentoo-overlay-465296e20c0ba95e05882242c69f04c342818ef5.tar.bz2 gentoo-overlay-465296e20c0ba95e05882242c69f04c342818ef5.zip |
smartctl_exporter 0.13
this supports megaraid properly
Diffstat (limited to 'app-metrics/smartctl_exporter/files/smartctl_exporter.service')
-rw-r--r-- | app-metrics/smartctl_exporter/files/smartctl_exporter.service | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-metrics/smartctl_exporter/files/smartctl_exporter.service b/app-metrics/smartctl_exporter/files/smartctl_exporter.service new file mode 100644 index 0000000..c21aa5a --- /dev/null +++ b/app-metrics/smartctl_exporter/files/smartctl_exporter.service @@ -0,0 +1,22 @@ +[Unit] +Description=smartctl exporter +Documentation=https://github.com/prometheus-community/smartctl_exporter +After=network-online.target + +[Service] +# Security improvements required in future, but needs care; ideally +# smartctl_exporter runs minimal privilege, but can invoke smartctl via sudo to +# touch disks. +# https://github.com/prometheus-community/smartctl_exporter/issues/146 +User=root +Group=root +Restart=on-failure +Type=exec +# TODO: find a good way to add args here +ExecStart=/usr/sbin/smartctl_exporter +ExecReload=/usr/bin/kill -HUP $MAINPID +TimeoutStopSec=20s +SendSIGKILL=no + +[Install] +WantedBy=multi-user.target |