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!

Restart services without rebooting server?

Discussion in 'General Discussion' started by lambov, Apr 18, 2018.

  1. lambov

    lambov Member

    Joined:
    Oct 9, 2016
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Earth
    cPanel Access Level:
    Root Administrator
    i run cPanel Security Advisor and get this warning:
    Code:
    Detected 11 processes that are running outdated executables: 29474 29458 1942 27030 27036 27751 1 27802 28640 5208 28649
    Reboot the server to ensure the system benefits from these updates.
    Code:
    [root@server~]# /usr/bin/needs-restarting
    29474 : /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/3rdparty/attracta/scripts/daily_jobs.pl
    29458 : /usr/sbin/CROND -n
    27030 : /usr/sbin/CROND -n
    27036 : /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/3rdparty/attracta/scripts/daily_jobs.pl
    27751 : /usr/sbin/CROND -n
    1 : /usr/lib/systemd/systemd --system --deserialize 21
    27802 : /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/3rdparty/attracta/scripts/daily_jobs.pl
    28640 : /usr/sbin/CROND -n
    5208 : top -c
    28649 : /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/3rdparty/attracta/scripts/daily_jobs.pl
    how to restart them without reboot my server?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,928
    Likes Received:
    1,819
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @lambov,

    You can restart the individual services in most cases. For example, you can restart the crond service with the following command:

    Code:
    /scripts/restartsrv_crond
    As far as the "systemd" service, you can reexecute the systemd manager with the following command:

    Code:
    systemctl daemon-reexec
    There's a third-party URL discussing the need to restart systemd at:

    Can I restart systemd without rebooting?

    As for the remaining processes (perl and top), those processes can be killed manually if they are still running. EX:

    Code:
    ps aux|grep top
    kill -9 $PID
    Replace "$PID" with the process ID for top that's listed after running the ps command.

    Note that a full reboot of the system is required in some cases. You can use the --reboothint flag to see if that's the case on your system. EX:

    Code:
    /usr/bin/needs-restarting --reboothint
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    linux4me2 likes 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