
JohnA.96687 (Customer) asked a question.
I have the Okta LDAP agent installed on CentOS 7.8 and have observed that while the sysV init script that ships with the package will start the agent, it will not stop the agent.
Has anyone else observed this behavior?
I've had a look at the script and it's unimpressive. Given that all of the Red Hat family is now systemd, wouldn't a unit file be more appropriate?

Turns out it was right in front of me. Hey Okta... fix your script. The stop section reads....
stop() {
if $STATUS > /dev/null; then # <---- this is the offending line
echo -n $"Stopping $ProgramName "
if [[ $UID -ne 0 ]]; then
ReturnValue=1
$FAIL
else
JOBID=$(eval echo $JOBID)
$KILL $JOBID
rm -f $PIDFile
ReturnValue=$?
[[ $ReturnValue -eq 0 ]] && rm -f $LOCK
fi
echo
return $ReturnValue
fi
}
It should read:
stop() {
if ! $STATUS > /dev/null; then # <-- this is how it should read
echo -n $"Stopping $ProgramName "
if [[ $UID -ne 0 ]]; then
ReturnValue=1
$FAIL
else
JOBID=$(eval echo $JOBID)
$KILL $JOBID
rm -f $PIDFile
ReturnValue=$?
[[ $ReturnValue -eq 0 ]] && rm -f $LOCK
fi
echo
return $ReturnValue
fi
}
$100 for my time please.