Comment 12 for bug 489596

Revision history for this message
TheSkorm (ubuntu-uz) wrote :

If your system uses systemd you can edit /lib/systemd/system/fancontrol.service and add under [Service], Restart=always

It's a better workaround than using pm-utils

For example

[Unit]
Description=fan speed regulator
# Run pwmconfig to create this file.
ConditionPathExists=/etc/fancontrol
After=lm-sensors.service
Documentation=man:fancontrol(8) man:pwmconfig(8)

[Service]
ExecStartPre=/usr/sbin/fancontrol --check
ExecStart=/usr/sbin/fancontrol
PIDFile=/var/run/fancontrol.pid
Restart=always

[Install]
WantedBy=multi-user.target