This function reports which services (daemons) are enabled, installed, and monitored on your server.
service | string The service for which to view the status. Notes If you do not specify this parameter, the function will return the status for all of your server's services. Available Services:
For more information about these services, read our Service Manager documentation. Example: service=crond |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ servicestatus
{- "data": {
- "service": [
- {
- "display_name": "Cron Daemon",
- "enabled": 1,
- "installed": 1,
- "monitored": 1,
- "name": "crond",
- "running": 1
}
]
}, - "metadata": {
- "command": "servicestatus",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}