Skip to content

Latest commit

 

History

History
43 lines (23 loc) · 693 Bytes

lua.md

File metadata and controls

43 lines (23 loc) · 693 Bytes

Running Lua scripts with SvcBatch

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