[Lazarus] Stopping a service from within a service

wkitty42 at windstream.net wkitty42 at windstream.net
Thu Feb 4 18:28:50 CET 2016


On 02/04/2016 11:41 AM, Richard Mace wrote:
> Hi,
>
> What's the best way of shutting down a service that is a service, having the
> same effect as the user clicking stop.
>
> Basically, I want my service to monitor a condition, which if met, it will stop
> itself.
>
> Windows Lazarus 1.4.4

i don't know of a ""best"" way but there are several... the easiest might be to 
monitor a disk-based semaphore file... if it exists, the service closes as you 
desire...

-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list* unless
        private contact is specifically requested and granted.




More information about the Lazarus mailing list