Is there any disadvantage to restart Domoticz service

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
leby
Posts: 98
Joined: Monday 28 July 2014 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Stockholm
Contact:

Is there any disadvantage to restart Domoticz service

Post by leby »

Hi, sometimes I have had problem with domoticz, it hangs and don't respond. Normally that is no real problem I just restart it from the rpi.
But when I'm not at home it sometimes would be good to have some automatic fix!

I have created a cronjob that restart domoticz twice a day, is there any disadvantage with that?

Code: Select all

0 3,13 * * * bash /home/pi/domoticz/dz_restart.sh

Code: Select all

#! /bin/sh
sudo service domoticz.sh restart
/lennart
xury
Posts: 48
Joined: Monday 10 December 2018 23:32
Target OS: Linux
Domoticz version:
Location: Poland
Contact:

Re: Is there any disadvantage to restart Domoticz service

Post by xury »

I don't think so except losing some uncollected data during needed time to restart.
But better way to use API as a watchdog.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest