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
Barry