| 1 |
[Unit] |
| 2 |
Description=Initialize hardware monitoring sensors |
| 3 |
|
| 4 |
[Service] |
| 5 |
# added automatically, for details please see |
| 6 |
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort |
| 7 |
ProtectSystem=full |
| 8 |
ProtectHome=true |
| 9 |
ProtectHostname=true |
| 10 |
ProtectKernelLogs=true |
| 11 |
ProtectControlGroups=true |
| 12 |
RestrictRealtime=true |
| 13 |
# end of automatic additions |
| 14 |
EnvironmentFile=/etc/sysconfig/lm_sensors |
| 15 |
Type=oneshot |
| 16 |
RemainAfterExit=yes |
| 17 |
ExecStart=-/sbin/modprobe -qab $BUS_MODULES $HWMON_MODULES |
| 18 |
ExecStart=/usr/bin/sensors -s |
| 19 |
ExecStop=-/sbin/modprobe -qabr $BUS_MODULES $HWMON_MODULES |
| 20 |
|
| 21 |
[Install] |
| 22 |
WantedBy=multi-user.target |