On Wed, 2021-08-04 at 02:17 -0700,
brad.v...@gmail.com wrote:
>
> I'm trying to set a CPU quota for McAfee ENS for Linux (ENSL). ENSL
> has two services: mfeespd and mfetpd (or isecespd and isectpd for an
> earlier version). One should be able to run 'systemctl show -p
> CPUQuota mfeespd.sevice' to get the current CPU quota setting, but
> that is not working. So, I have to see if the
> /etc/systemd/system/mfeespd.service.d/50-CPUQuota.conf file exists
> and if it does grep the value from it. This is repeated for the
> mfetpd service. The only difference is the path is
> /etc/systemd/system/mfetpd.service.d/50-CPUQuota.conf. I can't
> figure out how to use a variable to hold the critical difference in
> the path so that I can loop for the two services instead of repeating
> the same code but just changing the path. What I have is:
guess, and running some one-off commands to maybe set them. It's much