jezs00 / pycasso

A system to send AI generated art to an E-Paper display through a Raspberry PI unit
MIT License
76 stars 6 forks source link

Don't use rc.local for startup #47

Closed recrudesce closed 1 year ago

recrudesce commented 1 year ago

See https://raspberrypi.stackexchange.com/questions/117729/rc-local-not-able-to-execute-python-script-with-network-code

The service that's being created is using rc.local, which has been causing me some issues lately where it's starting the script before the network is up on the Pi, and resulting in errors regarding not being able to connect to my local Stable Diffusion service.

Changing After=rc-local.service to After=network.target in the systemd service fixes it :)

jezs00 commented 1 year ago

Sounds good to me!