Automatic reboot Domoticz

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Kouwe
Posts: 14
Joined: Friday 31 May 2019 11:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11352
Contact:

Automatic reboot Domoticz

Post by Kouwe »

I'm running Domoticz on a Raspberry 3 plus. That works fine, but I found out that after about a week the Domoticz application starts to run slow. I then do a reboot. Apparently the log is full or something like that. Now I actually want to automate this, but it probably takes me too much research to get it done myself. Does someone have a script or can someone make a script that automatically reboots the Raspberry twice a week around 3.00 a.m. at night?
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Automatic reboot Domoticz

Post by Egregius »

sudo crontab -e
0 3 * * 1,4 reboot

this will execute the command 'reboot' at 3:00 on Sunday and Wednesday.

Keep in mind that this kind of stuff is only a workaround. You should investigate why it becomes slow.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest