Skip to contentSkip to conversation

sensord systemd unit

lm-sensors Jean Delvare 1 participant 1 message May 24, 2013

lore
Share & tools
lore

Jean Delvare

author Applied
#0 lore raw

Hi Nikola,

Sorry for the late reply :(

init/sensord.systemd line 2

Quoted 5 lines · Nikola Pajkovsky
init/sensord.systemd +2 -0
@@ -0,0 +1,11 @@
+[Unit]
+Description=Sensor Information Logging

I added:
After=syslog.target

init/sensord.systemd line 6

Quoted 4 lines
init/sensord.systemd +4 -0
+
+[Service]
+Type=forking
+EnvironmentFile=-/etc/sysconfig/sensord

I removed the "-", as the environment file is mandatory, otherwise the ExecStart below will fail, right?

init/sensord.systemd line 11

Quoted 5 lines
init/sensord.systemd +5 -0
+PIDFile=/run/sensord.pid
+ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon
+
+[Install]
+WantedBy=multi-user.target

Applied, thanks!

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors