[Lunar-commits] <moonbase-other> lm_sensors: add the lm_sensors.service file for systemd.

Florin Braescu florin at lunar-linux.org
Sun Aug 19 08:17:45 CEST 2012


commit 6402c22abd9983834c7e8db062e7df4c74ec27cb
Author: Florin Braescu <florin at lunar-linux.org>
Date: Sat, 18 Aug 2012 23:17:45 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/6402c22abd9983834c7e8db062e7df4c74ec27cb

lm_sensors: add the lm_sensors.service file for systemd.
---
  utils/lm_sensors/systemd.d/lm_sensors.service                +14/-0    
  1 files changed, 14 insertions (+), 0 deletions (-)

--- /dev/null
+++ b/utils/lm_sensors/systemd.d/lm_sensors.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Initialize hardware monitoring sensors
+After=syslog.target
+
+[Service]
+EnvironmentFile=/etc/sysconfig/lm_sensors
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=-/sbin/modprobe -qab $BUS_MODULES $HWMON_MODULES
+ExecStart=/usr/bin/sensors -s
+ExecStop=-/sbin/modprobe -qabr $BUS_MODULES $HWMON_MODULES
+	
+[Install]
+WantedBy=multi-user.target




More information about the Lunar-commits mailing list