On Wed, 2023-09-06 at 19:09 +0100, Barry wrote:
On 6 Sep 2023, at 11:38, Patrick O'Callaghan pocallaghan@gmail.com 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 /SWAP/swapfile ExecStart=/usr/sbin/apachectl graceful
Thanks, but I'm not sure how this addresses the SElinux problem.
poc