There is a lua script, which connects to the server in a loop until the connection is waiting for the event and is already doing the necessary processing.
Something like this
local con = Connetct(url, login, pass);
if con:connected() then
In order to run this script as a daemon using systemd. Was this config
Run it a bit wrong, as we would like, i.e. after you run the command systemctl start myunit nothing happens, no output, all start and you have to press ctrl+c to cancel.
But the demon appears in the processes and everything works.
But I would like to do to it is normally run.
Most likely the problem is in the output streams, I tried to not override did not help. Also I think that the lua script somehow should answer systemd that it has started and is running.
Please help to resolve this issue. Thank you in advance for your help.