× This is the optional category header for the Suggestion Box.

Watchdog and auto start of server?

9 years 2 months ago #294 by skywatch
Thinking about unattended operation (i.e. in a holiday home), would it be possible to make use of the watchdog in the pi and if there's an issue, reboot the pi and re-start (automatically) the EIoT server?

Skywatch.

Please Log in or Create an account to join the conversation.

9 years 2 months ago #296 by cdj
Its quite simple. Just make two cronjobs on raspy...

first of all install easyiot as system service.

than if you want to reboot raspberry every week for example put in /etc/cron.weekly/ a batch to reboot

if you want to restart easyiot for example one time a day put in /etc/cron.daily/ a batch with /etc/init.d/easyiot restart

Ciao
dariocdj

Please Log in or Create an account to join the conversation.

9 years 2 months ago #300 by skywatch
Thanks for that.

I wasn't really after *regular* reboots, just something to monitor if the web server is up and running and if not only *then* to reboot the pi and restart the server.

Please Log in or Create an account to join the conversation.

9 years 2 months ago #306 by EasyIoT

skywatch wrote: Thinking about unattended operation (i.e. in a holiday home), would it be possible to make use of the watchdog in the pi and if there's an issue, reboot the pi and re-start (automatically) the EIoT server?

Skywatch.


maybe, but not in first plan. There are two freezes:
-EasyIoT server freezes - this maybe can be solved with some script and cron as cdj suggested. Script can start service or reboot Raspberry
-Raspberry Pi freezes - in BMC is HW WD. This require program implementation in EasyIoT server

My Raspberry is running more than half a year without problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.257 seconds

Forum latest

  • No posts to display.