Skip to main content

Detected PID 1 running outdated executable

Comments

3 comments

  • User Avatar
    cPanelLauren
    Hello, cPanel only manages and monitors services listed at WHM>>Service Configuration>>Service Manager services like systemd won't be managed by this. cPanel runs /usr/bin/needs-restarting to get a list of pids that need to be restarted, regardless of whether or not they're managed by cPanel's Tailwatch/chkservd processes. The following is the only way I know of to reload systemd without rebooting the server: systemctl daemon-reexec
    There's a few reasons why a process will show as needs restarting either they aren't being monitored in WHM>>Service Configuration>>Service Manager or the /usr/bin/needs-restarting may have run in between service checks, though cPanel won't restart a running service if it's running normally as well.
    0
  • User Avatar
    David Newall
    Hello Lauren, Thank you for your input. As you said, systemd is not one of the services listed at WHM>>Service Configuration>>Service Manager. Your hint, /usr/bin/needs-restarting, enabled me to discover that systemd was included in the list of outdated processes because libgcc-4.8.5-28.el7_5.1.x86_64 had been updated. I restarted the machine and anticipate that the email will cease (at least, cease to include pid 1!) Thank you for directing me to a good place to learn more about what is happening. For the benefit of anybody who is interested in learning how I discovered exactly why each process was included in the list: --- /usr/bin/needs-restarting 2018-04-11 14:16:19.000000000 +1000 +++ /tmp/y 2018-05-22 13:07:19.000000000 +1000 @@ -173,6 +173,7 @@ for pid in return_running_pids(uid=myuid): try: pid_start = utils.get_process_time(int(pid), boot_time)['start_time'> + print 'start time of', pid, 'is', pid_start except (OSError, IOError), e: continue found_match = False @@ -185,6 +186,7 @@ # if the file is in a pkg which has been updated since we started the pid - then it needs to be restarted for pkg in my.rpmdb.searchFiles(just_fn): if float(pkg.installtime) > float(pid_start): + print 'pid', pid, 'needs restarting because', just_fn, 'in package', pkg, 'was installed', (pkg.installtime-pid_start), 'seconds after process started.' needing_restart.add(pid) found_match = True continue Regards, David
    0
  • User Avatar
    cPanelLauren
    Hi David, I'm really happy that my response helped and you were able to get some further information and alleviate your concerns. Thank you for sharing as well. Thanks!
    0

Please sign in to leave a comment.