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!

xml-api restartservice

Discussion in 'cPanel Developers' started by Neco, Feb 11, 2009.

  1. Neco

    Neco Registered

    Joined:
    Feb 9, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
  2. ck

    ck Member

    Joined:
    Aug 15, 2001
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    301
    Does the account you are using to access xml-api have permissions to restart services? (assuming it is not root user)
     
  3. MattDees

    MattDees Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Ok, well there are two issues here:

    1.) the service is "sshd" not "ssh", this is a documentation issue that should be fixed shortly.
    2.) it should not be returning a blank page like that. Is there anything in the error_log to accompany it? Is this being run as the root user? If you need assistance you can open a ticket with us titled "attn: qa matt xml-api restartservice" and I can troubleshoot this on your server for you.

    What it should be returning is:

    Code:
    <restartservice>
    −
    <restart>
    <rawout/>
    <result>0</result>
    <service>ssh</service>
    <servicename>No such service</servicename>
    </restart>
    </restartservice>
    −
    <!--
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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