I need to automatically restart my apache service on the crontab otherwise the service is regularly taken down 😔
It's used for Pleroma, Pixelfed and Peertube but there is one account only in each instance.

@fedilab Do you have an error from Apache, either in /var/log/apache or using systemctl status apache2 after it is took down? (I’m assuming a Debian / Ubuntu server)

@GeoffreyFrogeye
I will check that. But error from apache didn't give me details.

@fedilab Can you use something like monit to monitor if httpd is responding, and automatically restarting it?
nginx?

@fireglow
Currently my cron command works but that's ugly :(

@fedilab @fireglow A maybe a bit easier way would be setting up to restart Apache when it crashes. But as Apache should never crash without a reason, I would really check the errorlog or syslog

@kmj
No :( I split errors log files depending of the subdomain. I will check deeper though.

@fedilab
apache normally never dies without error.log, except sig11 or like this in syslog. cron restart script is emergency backup, you must get apache to not die, which is abnormal.

Inscrivez-vous pour prendre part à la conversation
Framapiaf

Le réseau social de l'avenir : Pas d'annonces, pas de surveillance institutionnelle, conception éthique et décentralisation ! Possédez vos données avec Mastodon !