If you tried it outside of BigFix, does
systemctl stop servicename actually stop the service? Do the processes go away?
What you’re doing looks correct to me (assuming this is a ‘systemd’ type service and you have the servicename correct).
In fact the way that you’re using the
&& operator implies that the
systemctl disable won’t actually execute unless the
systemctl stop is successful. You may want to put those on separate lines so that the
disable executes even if the
stop fails - for instance if the service is enabled, but not actually running, I’m not sure whether the
stop command would throw a non-zero exit code and prevent the
disable from running.