You did not mention the operating system where you are running Jenkins. Are you sure that you used the operating system package manager to check for the jenkins package installed with the package manager? A file /etc/init.d/jenkins without an operating system package manager means that someone created a Jenkins service themselves rather than use the service provided by the operating system package manager.
If there truly is not a jenkins package for an operating system package manager on that system, then you are left with two choices:
- Identify the service and packaging differences between the Jenkins version before and after and extend / modify your systemd unit definition to support the new Jenkins version
- Replace the existing jenkins service with a service created by installing the operating system package
In either of those cases, I suspect you will need to make significant changes to your environment. Create multiple backups before doing that. Verify the backups are in good condition.
If you choose the first option, you choose to continue maintaining your private systemd service definition. That means you choose to follow changes to Jenkins core related to packaging and update your private systemd service definition to keep pace with those changes. You choose to continue to support your system as a "one of a kind" installation with a private systemd service definition.
If you choose the second option, you choose to stop and remove your existing private systemd or System V init service definition. There may be expectations in your installation of things that were defined in your private service definition that you will need to replicate in the service definition created by the operating system package provided by the Jenkins project.
In your picture you have a process tree:
The first command is runuser
the second is a /bin/bash
the third is the actual java
As you use systemd to start Jenkins did you look at the blog-post about the systemd migration https://www.jenkins.io/blog/2022/03/25/systemd-migration/
Or have you written your own systemd start config?