07-29-2016, 09:43 AM
Sometimes, when raspberry pi (jessy) reboot, pilight restart without ssdp conenction. As I use piSchedule, after a reboot sometimes I miss my schedule because of this ssdp. I had to manually restart pilight in order to get ssdp right
I was investigating and seems that is because of dhcp (pilight start before IP is assigned), and the solutions here is disable dhcp and configure static IP. For other reasons this is not able for my configuration.
I have read some about init, systemd, rc stuff and seems that I have found a solution that seems to work.
This is what I have made:
and put into this config file this text:
I want to share this if it can help other people.
I was investigating and seems that is because of dhcp (pilight start before IP is assigned), and the solutions here is disable dhcp and configure static IP. For other reasons this is not able for my configuration.
I have read some about init, systemd, rc stuff and seems that I have found a solution that seems to work.
This is what I have made:
Code:
sudo mkdir /etc/systemd/system/pilight.service.d
sudo nano /etc/systemd/system/pilight.service.d/pilight.conf
and put into this config file this text:
Code:
[Unit]
Require = network-online.target
After = network-online.target
I want to share this if it can help other people.