2020-08-14, 21:23
I'm not sure how to word this for googling, so I haven't been able to find anything on this. But I have one raspberry pi running kodi and another raspberry pi running the library with mysql. It usually works just fine, I can sync my watched status with it and the other kodi devices. But seemingly for no reason, every couple days, it (the kodi I use to watch on my TV) will just drop it's connection to the mysql server and "forget" all watched status for everything on it. If I reboot it, it comes back and everything is right with the world.
My question is, is there a way I can maybe throw something in a cron job every hour that forces the kodi pi to just go out and try to connect and if it fails, re-establish it or something? Like whatever process it is doing on bootup, can I manually do that with a command myself? That seems like it would solve my problem.
Both are on static IPs and from what I can tell neither is going to "sleep". Any ideas? Thanks!
My question is, is there a way I can maybe throw something in a cron job every hour that forces the kodi pi to just go out and try to connect and if it fails, re-establish it or something? Like whatever process it is doing on bootup, can I manually do that with a command myself? That seems like it would solve my problem.
Both are on static IPs and from what I can tell neither is going to "sleep". Any ideas? Thanks!