[SOLVED] 123solar stopped after reboot + some interruptions
Re: 123solar stopped after reboot + some interruptions
Hi Jeanmarc, time to update: after I changed RS485 converter monitoring is still running. I only have the usual problem of 123solar stopped at every restart, I can't find a solution...
Re: 123solar stopped after reboot + some interruptions

How to start 123solar on boot ?
systemd or SysVinit run as process 1
Check if you use initd or systemd with this command : ps 1
For sysvinit, edit /etc/rc.local file and add the line: /usr/bin/curl http://localhost/123solar/scripts/boot123s.php
If you use systemd: Download '123solar.service' and put it in /etc/systemd/system then type : systemctl enable 123solar
Re: 123solar stopped after reboot + some interruptions
123solar starts at boot but my problem is that it starts in STOPPED mode. I have to manually enter administration and activate it everytime I reboot my pi. Any hint? What if I edit rc.local with:
/usr/bin/curl http://localhost/123solar/scripts/daemon_start.php
EDIT: I tried, no luck.
/usr/bin/curl http://localhost/123solar/scripts/daemon_start.php
EDIT: I tried, no luck.

Re: 123solar stopped after reboot + some interruptions
What does curl returns ?
Re: 123solar stopped after reboot + some interruptions
No errors but I'm not a sysadmin, maybe I have to look in other places.
If I reboot, the webserver starts, I can reach the 123solar page but in Admin it's stopped.
I don't know what else to do.
EDIT: strange thing is ps 1 give init as result but I have .service in systemd/system and I didn't have the curl command in rc.local (I have added it today as per your instructions)
Tried adding this to crontab (no way):
@reboot /usr/bin/curl http://localhost:8080/123solar/scripts/boot123s.php
Tried removing .service and use only rc.local (nope).
I think it's related to me running webserver on port 8080, I have updated .service, maybe I have to modify the scripts? If this is the case I don't know what & how...
2nd EDIT: Solved adding '@reboot pause 20' in crontab
If I reboot, the webserver starts, I can reach the 123solar page but in Admin it's stopped.
I don't know what else to do.
EDIT: strange thing is ps 1 give init as result but I have .service in systemd/system and I didn't have the curl command in rc.local (I have added it today as per your instructions)
Tried adding this to crontab (no way):
@reboot /usr/bin/curl http://localhost:8080/123solar/scripts/boot123s.php
Tried removing .service and use only rc.local (nope).
I think it's related to me running webserver on port 8080, I have updated .service, maybe I have to modify the scripts? If this is the case I don't know what & how...
2nd EDIT: Solved adding '@reboot pause 20' in crontab
Who is online
Users browsing this forum: Bing [Bot] and 7 guests