mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-12-21 02:21:55 +01:00
20 lines
362 B
SYSTEMD
20 lines
362 B
SYSTEMD
|
[Unit]
|
||
|
Description=smartctl exporter service
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
PIDFile=/run/smartctl_exporter.pid
|
||
|
ExecStart=/usr/bin/smartctl_exporter
|
||
|
User=root
|
||
|
Group=root
|
||
|
SyslogIdentifier=smartctl_exporter
|
||
|
Restart=on-failure
|
||
|
RemainAfterExit=no
|
||
|
RestartSec=100ms
|
||
|
StandardOutput=journal
|
||
|
StandardError=journal
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|