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

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

  1. httpdocs

    httpdocs Member

    Joined:
    Mar 9, 2018
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    76
    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,734
    Likes Received:
    78
    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.
     
    httpdocs likes this.
  3. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    618
    Likes Received:
    192
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
  4. httpdocs

    httpdocs Member

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I've marked this thread as solved.

    Thank you.
     
Loading...

Share This Page