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 Restarting services question

Discussion in 'General Discussion' started by httpdocs, Mar 18, 2018.

  1. httpdocs

    httpdocs Member

    Joined:
    Mar 9, 2018
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    78
    Location:
    Iran
    cPanel Access Level:
    Root Administrator
    Hello
    Excuse me if I put my question in an inappropriate place ...
    Is there any difference between the "service httpd restart or service mysql restart" command in ssh with the "Restart Services" in WHM?
    I heard the words that the command "service httpd restart" in ssh does not kill process. But none of the sources was credible.
    In general, I wanted to see the "Restart Services" script different from "service httpd restart" in ssh?
    Thankful
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Its the same, however, when you use WHM for restart, it uses its own script to restart the services like /scripts/restartsrv_httpd or /scripts/restartsrv_mysql and many more..

    When you restart a services, the configuration file reloads again with the settings, so the existing process are killed and new processes starts, either you do it from WHM or shell, a service restart is going to kill existing process and make them reload with new configuration again if or not changed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    httpdocs likes this.
  3. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    841
    Likes Received:
    304
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. httpdocs

    httpdocs Member

    Joined:
    Mar 9, 2018
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    78
    Location:
    Iran
    cPanel Access Level:
    Root Administrator
    Thank You <3
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,826
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I've marked this thread as solved.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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