Page 1 of 1

start cmd-script if apache service is starting

PostPosted: 22. March 2021 10:03
by erich.wanker
hello,
every timer - if the apache-service ist starting - i want execute a cmd file.

Is this possible ?

ThanX for suggestions
Erich

Re: start cmd-script if apache service is starting

PostPosted: 22. March 2021 12:01
by Altrea
Hi Erich,

No this is natively not possible. Windows does not provide any pre or post scripts for status changes of services.

Of course there are ways to achieve that like writing your very own Apache service, scanning and reacting on specific windows event log or Apache log messages, etc.
But i would not invest any time in trying to implement something like that. What do you want to achieve with that?