AnsweredAssumed Answered

Server Side Script - infinite loop (on purpose)

Question asked by tntneo on Mar 12, 2014
Latest reply on Mar 13, 2014 by justinc

How do I get a server side script running forever?

 

I set up a script like this, and it works great, with a simple infinite loop and a pause, so it does not hog CPU.

However, I am wondering about side effects.

 

- how do I make sure the script is launched every time the server is restarted?

If I make the script run on schedule, say, daily once, will it start multiple times (it never stopped running, remember) adding one instance every day?

 

I just want this background process running permanently and if it stops for whatever reason, it restarts automatically within a few mn max.

Outcomes