YunoHost-Apps / searx_ynh

Searx package for YunoHost
https://searx.github.io/searx/
GNU General Public License v3.0
20 stars 17 forks source link

Setup cron jobs to restart the service in order to be more reliable #105

Closed tio-trom closed 2 years ago

tio-trom commented 2 years ago

I have tested our search.trom.tf instance and from time to time it will not showcase more than 1 result. Restarting it with systemctl restart uwsgi-app@searx will make it work again. I suggest ynh to add a cron job for daily restarts.

tio-trom commented 2 years ago

So I tested this and works a lot better. I have added a cron */40 * * * * sudo systemctl restart uwsgi-app@searx to restart every 40 minutes. Probably it should be fine to restart every day or so. But so far it makes a huge difference and our searx instance always seems to work.

yalh76 commented 2 years ago

have you tried with last version ?

tio-trom commented 2 years ago

Restarting every day or so seems to be a good practice. We can close this issue. Cheers!