Skip to main content

Manually start services shown by /bin/needs-restarting

Comments

3 comments

  • cPanelMichael
    Hello, The following commands are used to restart these services:
    /bin/systemctl restart NetworkManager.service /scripts/restartsrv_cpsrvd
    Keep in mind that NetworkManager is not a service provided with cPanel, so you should exercise caution before restarting it. Additionally, check to verify that the cpsrvd process isn't hanging (the date should update after you restart cpsrvd). EX:
    ps aux|grep cpsrvd
    If it is hanging, try manually killing the process and restarting cpsrvd again:
    kill -9 $PID /scripts/restartsrv_cpsrvd
    Thank you.
    0
  • caisc
    I ran both commands and restarted successfully both services - /bin/systemctl restart NetworkManager.service /scripts/restartsrv_cpsrvd after that checked with - /bin/needs-restarting Still it shows me - 1641 : cpsrvd (SSL) - waiting f --llu=1485846438 --listen=10,11,12,4,5,6,7,8,9 --accepted=13 Although when I run command /scripts/restartsrv_cpsrvd it says - root [/]# /scripts/restartsrv_cpsrvd Waiting for "cpsrvd" to restart gracefully ""waiting for "cpsrvd" to initialize "finished. Service Status cpanel (cpsrvd (SSL) - dormant mode - accepting --llu=1485846438 --listen=10,11,12,4,5,6,7,8,9) is running as root with PID 1641 (systemd check method). cpanel (whostmgrd - serving 117. --llu=1485846438 --listen=10,11,12,4,5,6,7,8,9 --accepted=13) is running as root with PID 267180 (systemd check method). cpanel (/usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cse.cgi) is running as root with PID 268724 (systemd check method). cpanel (/scripts/restartsrv_cpsrvd) is running as root with PID 268725 (systemd check method). Startup Log Jan 31 22:03:21 server.hostname.com crontab[995078]: (root) REPLACE (root) Jan 31 22:03:25 server.hostname.com crontab[995202]: (root) LIST (mailman) Jan 31 22:03:35 server.hostname.com crontab[995475]: (root) LIST (root) Jan 31 22:03:35 server.hostname.com crontab[995476]: (root) REPLACE (root) Jan 31 22:05:30 server.hostname.com crontab[997479]: (root) LIST (root) Jan 31 22:05:30 server.hostname.com crontab[997481]: (root) REPLACE (root) Jan 31 22:07:45 server.hostname.com crontab[999647]: (root) LIST (root) Jan 31 22:08:34 server.hostname.com crontab[1002780]: (root) LIST (root) Jan 31 22:10:23 server.hostname.com crontab[1004834]: (root) LIST (root) Jan 31 22:10:23 server.hostname.com crontab[1004837]: (root) LIST (root) cpsrvd restarted successfully. root [/]# _ why cpsrvd is still showing to be restarted? Thanks
    0
  • caisc
    Tried to restart cpanel using command - # systemctl restart cpanel now it /bin/needs-restarting does not show cpanel service to be restarted. Thanks
    0

Please sign in to leave a comment.