2024-03-21 13:12 skrev Yaroslav Halchenko:

FWIW here is a dirty workaround script I just crafted with chatgpt to
monitor/restart apache2 as soon as it starts happening

My workaround is simpler, I have this line in root's crontab:

5 * * * * curl --silent --max-time 5 --output /dev/null http://localhost/trac/ || systemctl restart apache2

It seems to restart Apache once every 5-8 days, according to the notices I see from Zabbix. The frequency might very well be related to the number of accesses to the server.

--
\\// Peter - http://www.softwolves.pp.se/

Reply via email to