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 ui
On Thu, 2023-09-14 at 03:03 +0930, Tim via users wrote:
> 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 wel
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
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
On Thu, 2023-09-07 at 08:40 +0100, Barry wrote:
>
>
> > On 6 Sep 2023, at 21:57, Patrick O'Callaghan
> > wrote:
> >
> > Thanks, but I'm not sure how this addresses the SElinux problem.
>
> I am just showing that you do not need to use bash to run more then
> one command in a systemd service un
> On 6 Sep 2023, at 21:57, Patrick O'Callaghan wrote:
>
> Thanks, but I'm not sure how this addresses the SElinux problem.
I am just showing that you do not need to use bash to run more then one command
in a systemd service unit.
Barry
___
users ma
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
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
> 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
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
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
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 I wondered if
this is a well-known problem with a simpler solution.
poc
12 matches
Mail list logo