I see in error.log of apache2 that it tries to restart every minute (which I dont think should be, as I only rewrite config files every 5 minutes and why would one want to restart apache2 that often? Whats the upside if in the middle of the night no config changes were apply. I think it should only be forced to restart when some config files actually have been changed (md5 hash?))) and often times collapse.
By that I mean that when the config files are yet to be written (froxlor cron to rewrite configs) and apache2 tries to restart: it cannot find some files (meaning some *.conf files in */sites-available) and therefore dies silently. After that, apache is dead and never tries to restart again.
How may I patch this behaviour? (Do I have to set up manually an cronjob on every 10 minutes which restarts apache?)
Thanks!
--
Hey,
im error.log von apache2 sehe ich h?ufig, dass versucht wird den Apache2 jede Minute neu zu starten. (Hier glaube ich schon, dass dies unn?tig ist, da ich jede 5 Minuten Konfigurationsdateien schreiben lasse und: warum sollte man den Apache2 so h?ufig neustarten wollen? (Es seidenn es hat sich wirklich was an den Konfigurationsdateien ver?ndert: md5 hash?!))
Wenn nun Apache2 neugestartet werden m?chte/wird/soll und der Cron von Froxlor anspringt und Konfigurationsdateien neu schreibt --> findet apache manchmal irgendwelche *.conf Dateien nicht und stirbt weg. (Und versucht sich dadurch nicht erneut neu zustarten)
Wie kann ich dieses Problem l?sen (evtl. mit einem eigenen Cron der Apache alle 10 Minuten neustartet?! (Siehe Problem von oben))?
apache2: Syntax error on line 227 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/20_froxlor_normal_vhost_neos.xxxxx.de.conf: No such file or directory
Question
pquerner
Hey,
I see in error.log of apache2 that it tries to restart every minute (which I dont think should be, as I only rewrite config files every 5 minutes and why would one want to restart apache2 that often? Whats the upside if in the middle of the night no config changes were apply. I think it should only be forced to restart when some config files actually have been changed (md5 hash?))) and often times collapse.
By that I mean that when the config files are yet to be written (froxlor cron to rewrite configs) and apache2 tries to restart: it cannot find some files (meaning some *.conf files in */sites-available) and therefore dies silently. After that, apache is dead and never tries to restart again.
How may I patch this behaviour? (Do I have to set up manually an cronjob on every 10 minutes which restarts apache?)
Thanks!
--
Hey,
im error.log von apache2 sehe ich h?ufig, dass versucht wird den Apache2 jede Minute neu zu starten. (Hier glaube ich schon, dass dies unn?tig ist, da ich jede 5 Minuten Konfigurationsdateien schreiben lasse und: warum sollte man den Apache2 so h?ufig neustarten wollen? (Es seidenn es hat sich wirklich was an den Konfigurationsdateien ver?ndert: md5 hash?!))
Wenn nun Apache2 neugestartet werden m?chte/wird/soll und der Cron von Froxlor anspringt und Konfigurationsdateien neu schreibt --> findet apache manchmal irgendwelche *.conf Dateien nicht und stirbt weg. (Und versucht sich dadurch nicht erneut neu zustarten)
Wie kann ich dieses Problem l?sen (evtl. mit einem eigenen Cron der Apache alle 10 Minuten neustartet?! (Siehe Problem von oben))?
Gru?
Log:
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.