summaryrefslogtreecommitdiff
path: root/app-metrics/smartctl_exporter/files/smartctl_exporter-0.14.0.service
blob: 53a469523a32da6d126619227986c41de9555a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=smartctl Exporter
Documentation=https://github.com/prometheus-community/smartctl_exporter
Requires=smartctl_exporter.socket

[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
Environment=OPTIONS=
EnvironmentFile=-/etc/sysconfig/smartctl_exporter
ExecStart=/usr/sbin/smartctl_exporter --web.systemd-socket $OPTIONS
ExecReload=/usr/bin/kill -HUP $MAINPID
TimeoutStopSec=20s
SendSIGKILL=no

[Install]
WantedBy=multi-user.target