I managed to solve it but wondering if there is a better solution, I installed network-manager and added a this to reef-pi.service
Will wait at least 20secs for the network to come up before starting reef-pi service, seems to work so far but hoping for something cleaner, @Ranjib will be curious if you already have a solution, I tried searching but not successful in finding another solution.
Update, there are lots of solutions to this, trying to find the easiest path forward, just adding sleep now to the ExecPrestart, that should do it also...will poke around some more and see what may be best.
Update2, here is what I currently have set:
Not sure I need the sleep since adding the multi-user.target but will need to test some more tomorrow and narrow things down, plus I installed network-manager so I need to re-image and start from scratch again.
:)
Code:
ExecStartPre=/usr/bin/nm-online --quiet --timeout=20
Will wait at least 20secs for the network to come up before starting reef-pi service, seems to work so far but hoping for something cleaner, @Ranjib will be curious if you already have a solution, I tried searching but not successful in finding another solution.
Update, there are lots of solutions to this, trying to find the easiest path forward, just adding sleep now to the ExecPrestart, that should do it also...will poke around some more and see what may be best.
Update2, here is what I currently have set:
Code:
[Unit]
Description=raspberry pi based reef tank controller
After=multi-user.target
[Service]
ExecStartPre=/bin/sleep 20
Not sure I need the sleep since adding the multi-user.target but will need to test some more tomorrow and narrow things down, plus I installed network-manager so I need to re-image and start from scratch again.
:)
Last edited:


