Some days I don’t get this notice but last night I got 3. Curious what the debug.log will say tomorrow.
Hi @eris, after I received another host.mydomain.com: apache2 restart failed
- Syntax OK
e-mail this morning I checked the content of the debug.log file:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
There is a small bug in:
That clear each time the log…
1 Like
It didn’t do it anymore and this morning… I received 3 emails… one at 7:45 and 2 at 7:47… Snif !
I have tracked down the error. It’s in /usr/local/hestia/bin/v-restart-web
if [ $? -ne 0 ]; then
send_email_report
check_result "$E_RESTART" "$WEB_SYSTEM restart failed"
fi
When Apache restarts, it runs a config test that returns Syntax OK and v-restart-web
sees that line as a failure in restarting Apache
.
Bug fixed we publish the packages tomorrow
and
1 Like
No it $? Is 0 how ever if start to restart with systemctl same apache2 it generates an error.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.