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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    42,715
    Likes Received:
    1,705
    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.
     
  3. YouHost

    YouHost Member

    Joined:
    Apr 2, 2012
    Messages:
    5
    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,065
    Likes Received:
    347
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    YouHost likes this.
  5. YouHost

    YouHost Member

    Joined:
    Apr 2, 2012
    Messages:
    5
    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