Restarting Daemon Script - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11) +--- Thread: Restarting Daemon Script (/showthread.php?tid=4617) |
Restarting Daemon Script - dnky76 - 01.03.2023 Hello all, I've been following the documentation here on how to create an app. On page three there are some instructions and an example URL for restarting the daemon script; http://ip/apps/request.lp?password=ADMINPASSWORD&action=restart&name=YOURAPPNAME When I execute this, with the correct details, I get a 400 Bad Request and nothing is logged. Could anyone please offer some advise on whether I'm using the wrong documentation, wrong URL, or how to further debug this issue please? Many thanks RE: Restarting Daemon Script - admin - 01.03.2023 This will only work if the request origin or referer header is set to the device itself. If you want to restart the daemon from your app UI then just make a custom .lp handler for it. For testing purposes you can also use a script. RE: Restarting Daemon Script - dnky76 - 01.03.2023 Thanks for that. I can confirm that be setting the referer header via curl I can restart the daemon. It wasn't clear from the documentation. I suspect we will integrate into our app eventually. |