InfluxDB doesn’t work after reboot, problem with rights

Continuing the discussion from InfluxDB doesn't work after reboot, problem with rights:

Hi, I fix it changing the rights /usr/lib/influxdb/scripts and then I make a simple watchdog running in in the crontab :
ps efaux | grep -v grep | grep /usr/lib/influxdb/scripts/

if not found - equals to 1, start it

if [ $? -eq 1 ]
echo INFLUXDB not running! Restarting…
/usr/lib/influxdb/scripts/ >> /tmp/influxdb.log 2>&1 &
echo INFLUX running.

the entry in the crontab looks like that:
*/1 * * * * /bin.bash /home/user/ > /tmp/influx_Watchdog 2>& 1 &

I hope it can helps

Isn’t that just working at the symptoms and not at the root cause ?

Btw that looks a bit strange:

dot between bin and bash and extension .py to be run with bash interpreter ?

my bad, it’s not python. it is just a bash script