Stop service by the daemon's own executable. lazarus / 21-General ---------------------------------------------------------------------- andersonscinfo · 2021-04-21 15:44 I don't know if the title was clear enough, but I will try to explain it better now, I have a service (daemon) and then I would like to stop or pause this service, but I want to do this for them myself, I tried to add a SimpleIPCServer and send a message, but it doesn’t work, has anyone been through this and could help me? Att. ---------------------------------------------------------------------- Thaddy · 2021-04-21 16:01 Actually, the provided example does what you need. Note the Daemon itself needs a controller, because it has no GUI interaction. See packages/fcl-extra/examples If that is not what you mean, you CAN make a daemon (or service in Windows speak) terminate itself based on a certain condition or timer, but it is not clear to me what you mean. ---------------------------------------------------------------------- andersonscinfo · 2021-04-21 17:40 I will try to explain better, I want to interact with the service, but not through the windows control, I want to interact through my application, so I tried to use the simpleipcserver, I will set up an example, to try to explain better. ---------------------------------------------------------------------- andersonscinfo · 2021-04-21 18:14 Here is an example of what I’m trying to do, I believe it’s easier to understand. Att. ---------------------------------------------------------------------- cdbc · 2021-04-21 21:56 hi You could setup a tcp server in your daemon and just communicate with that. I think Synapse would be a good choice, not much overhead... Have a look at the Echo example... just my 2 cents Regards Benny ---------------------------------------------------------------------- andersonscinfo · 2021-04-21 22:21 and tested it, but httpaplication can't stop daemonapplication. Att.