Resolves ps errors when archiving as an account does not have access to /proc/ (typical on SELinux). Change 'ps ex' to 'ps x' for compatibility with SELinux.
Example of this issue in forum: https://forum.matomo.org/t/selinux-errors-about-ps/14540
I'm not sure re possible consequences of that. Eg I reckon that for some users this could maybe break things where a different job runs under a different user/session?
Maybe someone knows a bit more. The only other thing I could imagine is to maybe first try
ps -ex and if this doesn't work run
ps -x maybe?
Maybe someone else knows more? @Findus23 maybe?
I can't remember if this was the reason for
ex, but years ago there was an issue on FreeBSD and to fix it we had to change the command. This might break for that or other systems.