Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Restart the listed process

Discussion in 'General Discussion' started by diWhile1, Nov 8, 2017.

  1. diWhile1

    diWhile1 Member

    Joined:
    Oct 11, 2015
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    Hello friends
    Every few days I get an email like this:

    New Security Advisor notifications with High importance
    Detected X process that is running outdated executables: 1234 You must take one of the following actions to ensure the system is up-to-date:
    -Restart the listed process.
    -Reboot the server.

    What is the alternative to reboot?
    Where can I find a guide or explanation about safe 'Restart the listed process'

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can run the following command to see a list of processes that need restarting:

    Code:
    /usr/bin/needs-restarting
    A reboot is only required in cases where restarting the service associated with those processes doesn't remove them from the output of the above command.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. YouHost

    YouHost Member

    Joined:
    Apr 2, 2012
    Messages:
    6
    Likes Received:
    2
    Trophy Points:
    53
    cPanel Access Level:
    Root Administrator
    Hello,
    I did the command
    /usr/bin/needs-restarting
    and have an output of processes that need to be restarted as notified by Security Advisor.

    744820 : /opt/alt/python27/bin/python2.7/usr/share/lve-stats/lvestats-server.pystart--pidfile/var/run/lvestats.pid
    744797 : /opt/alt/python27/bin/python2.7/usr/share/lve-stats/lvestats-server.pystart--pidfile/var/run/lvestats.pid
    744796 : /opt/alt/python27/bin/python2.7/usr/share/lve-stats/lvestats-server.pystart--pidfile/var/run/lvestats.pid

    Nowis there a command to restart processes that need restarting so I don't have to reboot?

    Best regards
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,170
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    YouHost likes this.
  5. YouHost

    YouHost Member

    Joined:
    Apr 2, 2012
    Messages:
    6
    Likes Received:
    2
    Trophy Points:
    53
    cPanel Access Level:
    Root Administrator
    PHP:
    service lvestats restart
    did the trick.
    Thank you for your advice.
     
    cPanelMichael and Infopro like this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice