Restart fancontrol via systemd upon wake

Fan contral doesn't like when the sensors aren't there. This just restarts fancontrol once everything is ready to go. There must be a simpler, better solution but this works for now.

Create a file:

sudo vim /lib/systemd/system-sleep/fancontrol

#!/bin/sh

case "$1" in
    post)
        sleep 5
        systemctl restart fancontrol.service
        ;;
esac

Make it executable:

sudo chmod +x /lib/systemd/system-sleep/fancontrol