Systemd

Restart after fail

If some service fails to start after waking up from suspend (for example, fancontrol) or just sometimes fails, you can force automatic restart of this service:

sudo systemctl edit fancontrol.service

This command will open editor. Fill in this directives:

[Service]
Restart=always

As a result an override file will be created in a drop-in directory /etc/systemd/system/fancontrol.service.d 1)