CommentStreams:96493e2d70c54f07ef552eb973bb4ff3

I have the script installed on a Raspbian Lite headless server. I added the crontab job as detailed below, but the fan doesn't come on when the machine is booted. I tried to test the script by running it directly with:

python /home/pi/x-c1/fan.py

however I get the error:

Did you start the pigpiod daemon?

I am only able to get the python script running if I manually kill the pigpiod daemon and restart it.

How can I fix this? Its annoying to have to remember to kill the daemon, restart it, and then manually start the script each time I reboot my server.