- RPCD handler returns immediately with job_id (~0.04s) - Background script uses file output to avoid pipe inheritance issues - LuCI JS polls job_status every 2s until completion - Uses setsid for proper process detachment - jsonfilter for reliable parameter parsing Fixes "Failed to publish" error caused by ubus timeout during 40+ second publish operations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
372 B
JSON
17 lines
372 B
JSON
{
|
|
"luci-app-droplet": {
|
|
"description": "Droplet Publisher",
|
|
"read": {
|
|
"ubus": {
|
|
"luci.droplet": ["status", "list", "job_status"]
|
|
}
|
|
},
|
|
"write": {
|
|
"ubus": {
|
|
"luci.droplet": ["upload", "remove", "rename"]
|
|
},
|
|
"cgi-io": ["upload"]
|
|
}
|
|
}
|
|
}
|