lm_sensors/lm_sensors.service
Artem Egorenkov a2bee3abb7 New flag for no sensors added. This flag is used in VM environment
to make sensors binaries not fail if no sensors was detected.
2021-02-25 13:50:10 +01:00

14 lines
377 B
Desktop File

[Unit]
Description=Hardware Monitoring Sensors
[Service]
EnvironmentFile=/etc/sysconfig/lm_sensors
Type=oneshot
RemainAfterExit=yes
ExecStart=-@WRAPPER_DIR@/lm_sensors-modprobe-wrapper $BUS_MODULES $HWMON_MODULES
ExecStart=@WRAPPER_DIR@/lm_sensors-wrapper
ExecStop=-@WRAPPER_DIR@/lm_sensors-modprobe-r-wrapper $BUS_MODULES $HWMON_MODULES
[Install]
WantedBy=multi-user.target