Shinobu API

Control the built-in Background Worker.

get
🔑Get Shinobu Status

http://lrr.tvc-16.science/api/shinobu
Get the current status of the Worker.
Request
Response
Request
Response
200: OK
Get the Shinobu process PID, and whether or not it's alive.
{
"success": 1,
"is_alive": 1,
"operation": "shinobu_status",
"pid": 1608
}

post
🔑Stop Shinobu

http://lrr.tvc-16.science/api/shinobu/stop
Stop the Worker.
Request
Response
Request
Response
200: OK
Worker is killed.
{
"operation": "shinobu_stop",
"success": 1
}

post
🔑Restart Shinobu

http://lrr.tvc-16.science/api/shinobu/restart
(Re)-start the Worker.
Request
Response
Request
Response
200: OK
Worker is started with a new PID.
{
"new_pid": 1727,
"operation": "shinobu_restart",
"success": 1
}