Update 'prometheus-amdgpu-power.service'

Waits for the file to exist before starting
This commit is contained in:
justine 2022-08-30 22:37:41 +02:00
parent ef5bad8e1e
commit c7ad1a2de8

View File

@ -3,7 +3,9 @@ Description=prometheus-amdgpu-power exporter
[Service] [Service]
User=root User=root
ExecStartPre=/usr/bin/test -f /sys/kernel/debug/dri/0/amdgpu_pm_info
ExecStart=/usr/bin/prometheus-amdgpu-power ExecStart=/usr/bin/prometheus-amdgpu-power
RestartSec=30s
Restart=on-failure Restart=on-failure
[Install] [Install]