Re: Apache fails to resume after hibernation

2023-09-06 Thread Patrick O'Callaghan
On Wed, 2023-09-06 at 10:15 -0700, Samuel Sieb wrote: > On 2023-09-06 03:38, Patrick O'Callaghan wrote: > > The swap stuff works (as discussed in an earlier thread), but the > > Apache restart fails: > > > >     Sep 06 08:01:33 Bree systemd[1]: selinux: avc:  denied  { start > > } for auid=n/a uid

Re: Apache fails to resume after hibernation

2023-09-06 Thread Patrick O'Callaghan
On Wed, 2023-09-06 at 19:09 +0100, Barry wrote: > > > > On 6 Sep 2023, at 11:38, Patrick O'Callaghan > > wrote: > > > > ExecStart=/bin/bash -c ' \ > >   /usr/sbin/swapoff /SWAP/swapfile ; \ > >   /usr/sbin/apachectl graceful ; \ > >   ' > > You can avoid the need for ba

Re: Apache fails to resume after hibernation

2023-09-06 Thread Barry
> On 6 Sep 2023, at 11:38, Patrick O'Callaghan wrote: > > ExecStart=/bin/bash -c ' \ > /usr/sbin/swapoff /SWAP/swapfile ; \ > /usr/sbin/apachectl graceful ; \ > ' You can avoid the need for bash in this case by using ExecStartPre ExecStartPre=/usr/sbin/swapoff /S

Re: Apache fails to resume after hibernation

2023-09-06 Thread Samuel Sieb
On 2023-09-06 03:38, Patrick O'Callaghan wrote: The swap stuff works (as discussed in an earlier thread), but the Apache restart fails: Sep 06 08:01:33 Bree systemd[1]: selinux: avc: denied { start } for auid=n/a uid=0 gid=0 path="/usr/lib/systemd/system/httpd.service" cmdline="" functio

Re: How to clean up Python in Fedora 38

2023-09-06 Thread Neal Becker
On Tue, Sep 5, 2023 at 8:09 PM George N. White III wrote: > On Tue, Sep 5, 2023 at 5:55 AM Michael Hannon > wrote: > >> I think that the suggestions offered so far (environments, etc.) are all >> very good, but another approach is to use the Anaconda distribution of >> Python: >> >> https://www.

Re: Apache fails to resume after hibernation

2023-09-06 Thread Patrick O'Callaghan
On Fri, 2023-09-01 at 12:36 +0100, Patrick O'Callaghan wrote: > I've noticed recently that Apache often (or perhaps always) doesn't > respond after a system hibernate/resume cycle. After restarting it > ('apachectl restart') all is well. > > I could script an automatic restart after resuming, but