The location is correct on my distribution. I probably should have stated as part of the problem what i am considering as an error
Should I run the following:
Code:
initctl list | grep rsyslog
I get the following output:
Code:
rsyslog start/running
And the other test I have run is:
Which yields no return data.
So my issue is that according to initctl the process is running but that both it and pgrep have identified that there is no associated process running.
I can change the variable compat for an absolute number, such as 3, 4 or 5, and a PID is assigned and it is running as expected.
So my main issue seems to be that my variable is not being used or is not getting assigned at the time of use.