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.

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:
    1
  2. ck

    ck Member

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

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    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>
    −
    <!--
    
     
Loading...

Share This Page