Page 1 of 1

Stop service windows

Posted: 08 Sep 2020, 04:57
by tropyw
Hello,
I have a shutdown hook in my server and I want to know if I stop the service of the server is the shutdown hook getting called? or is it just stop the server like "hard shutdown".
Thanks.

Re: Stop service windows

Posted: 08 Sep 2020, 08:59
by Lapo
Yes, it will be called every time the server is shutting down. Not just when you reboot the machine.

Cheers

Re: Stop service windows

Posted: 08 Sep 2020, 09:17
by tropyw
Thank you