Skip to content

Commit

Permalink
Wrap smartmon command in shell for correct pipe usage
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeLR committed Aug 26, 2023
1 parent 2f12372 commit 6bc0adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smartmon.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Gather S.M.A.R.T. metrics to be picked up by prometheus node exporter

[Service]
ExecStart=smartmon.sh | sponge /tmp/smartmon.prom
ExecStart=bash -c "smartmon.sh | sponge /tmp/smartmon.prom"

[Install]
WantedBy=multi-user.target

0 comments on commit 6bc0adc

Please sign in to comment.