Lua scripts can be run as Windows services using SvcBatch.
Inside the lua directory you can find
a basic example that runs .lua
script as services.
Put svcbatch.exe
and lua.exe
into that directory and create
the service by typing
> svcbatch create luasvc --set Command lua.exe iloop.lua
After that, start the service by typing
> svcbatch start luasvc
To stop the service type
> svcbatch stop luasvc
To delete the service type
> svcbatch delete luasvc
You can find lua executable at https://github.com/mturk/lua