On 15.03.2017 08:20, Roger Oberholtzer wrote:
(Current Tumbleweed, apache2-2.4.25-3.1.x86_64 - but has been happening since original install in January)
Every couple of days (I have not located that part of the pattern), my apache server dies. The only pattern I see is that is it always around midnight when it happens.
...
I'm not certain that mod_python is the cause. The apache2 server provides access to a Trac site (we love Trac: https://trac.edgewall.org/) . So we are big users of mod_python.
I'm not sure how to proceed. Obviously the apache2 problem should be solved. Nonetheless, I would think systemd would ensure that the server is running. I do not see that this is happening. If it were restarted again I would see the restart in the log. I do not see this.
1. How to get systemd to restart apache2 again so it is runnung?
2. Anyone else using mod_python in apache2?
I have observed similar behavior (apache service dying, package version 2.4.23-6.1) after upgrading my home server from 13.2 to 42.2. The apache instance is running owncloud and a local OBS 2.7 server. AS i don't really have the time to dig into this, I have adapted my apache2 unit file to automatically restart apache in such cases, see below (the changes are below the comment lines. Unit file at: /usr/lib/systemd/system/apache2.service -----8<---------------------------------------------- [Unit] Description=The Apache Webserver After=network.target nss-lookup.target time-sync.target remote-fs.target Before=getty@tty1.service plymouth-quit.service xdm.service PartOf=apache2.target [Service] Type=notify PrivateTmp=true ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start ExecReload=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k graceful ExecStop=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k graceful-stop KillMode=mixed TasksMax=infinity NotifyAccess=all # 2017-03-13 AM: added restart tag to work around the occasional crashes Restart=on-failure # 2017-03-13 AM: ... and wait for 30 seconds before performing the restart, just in case RestartSec=30 [Install] WantedBy=multi-user.target Alias=httpd.service apache.service -----8<---------------------------------------------- -- Cahn's Axiom: When all else fails, read the instructions. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org