Carlito Nueno <carlitonu...@gmail.com> wrote: > Hi all, > > I am trying to make a ubus service in lua. > > I placed a lua script (myluaservice) in /usr/libexec/rpcd but I > didn't see it in ubus -v list. > > So I placed a shell script (myshellservice) in > /usr/libexec/rpcd and moved the lua script (myluaservice) to > /usr/bin/ and made both scripts executables. > > Now I can see the shell script in ubus -v list but lua script > is not called. > > Both scripts: > https://gist.github.com/ironpillow/4e116a7aa897bf05b3bb39c38f9b23b4. >
How is rpcd meant to know that it needs to require your lua module and call specific named functions? You need to have the same arguments and invocation method as your shell script, then it will work just fine. Cheers, Karl P
signature.html
Description: OpenPGP Digital Signature
_______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev