/services
0.2.0Unchanged since publicationList the daemons UrbeStack runs or relies on
settingsreadallThe response reports each daemon's state, how long it has been in that state, its health check response when checked, its monitor settings, and what stopping it would interrupt. It also includes counts by state.
A daemon is up when its process runs and passes its service-specific health check, hung when its process runs but fails to answer the check, and down when its systemd unit has failed. The stopped state covers stops through UrbeStack and stops performed outside it. For stops through UrbeStack, the response reports who stopped the daemon and when. A disabled daemon is disabled at boot. An absent daemon is uninstalled, and the response identifies the page where you can install it.
By default, UrbeStack runs each daemon's service-specific health check. Set check=0 to read systemd state alone.
As a command
Run as root on the serverParameters
checkquery ·booleanExample
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/services?check=1" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"counts": {},
"monitor": {
"dead": true,
"dead_since": "text",
"interval_minutes": 1,
"last_round_at": "text",
"last_round_found": 1,
"last_round_seconds": 1,
"last_round_watched": 1,
"stale": true
},
"services": [
{
"at_boot": true,
"check": {
"ok": true,
"words": "text"
},
"checked_by": "text",
"cuts": "text",
"depth": "answer",
"falls_30d": 1,
"group": "Panel",
"guard": 1,
"has_log": true,
"installed": true,
"last_check_at": "text",
"last_check_words": "text",
"last_restart_at": "text",
"may_disable": true,
"may_stop": true,
"name": "alice",
"need": "text",
"pid": 1,
"role": "user",
"rounds": 1,
"since": "text",
"state": "up",
"stopped_at": "text",
"stopped_by": "text",
"stopped_from": "text",
"systemd_restarts": 1,
"timeout": 1,
"unit": "text",
"version": "0.0.1",
"watched": true
}
]
}Errors
5 errors, each a status and a sentence400Invalid boolean400Invalid setting key401Authentication required404No daemon named <name>404Setting '<key>' not foundurbestack.com/docs/api/get-services/