I have a function and i need to execute it when http server started. If i send a request with curl it is starting to run continously. I need to do that with