After upgrade the jenkins UI is not up

We upgraded the Jenkins standalone instance from V2.303.3 to v2.426.3, the jenkins UI is not up, but the same steps in preprod works fine. Below is the error we received.
“Starting jenkins exception in thread “main” java.lang.IllegalArgumentException: Unrecognized option: --daemon”

Can anyone help us to understand how to resolve this issue

Remove --daemon from your startup script. it should be under /etc/rc.d/init.d/jenkins… if you dont see it here you can get it from sudo systemctl show jenkins

PARAMS="--logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon"

now reload the systemctl daemon

sudo systemctl daemon-reload
then
sudo systemctl restart jenkins

and if you see --handlerCountMax error after restart delete these two lines from the script

[ -n "$JENKINS_HANDLER_MAX" ] && PARAMS="$PARAMS --handlerCountMax=$JENKINS_HANDLER_MAX"
[ -n "$JENKINS_HANDLER_IDLE" ] && PARAMS="$PARAMS --handlerCountMaxIdle=$JENKINS_HANDLER_IDLE"

sudo systemctl daemon-reload
then
sudo systemctl restart jenkins