Click here to Skip to main content
15,878,230 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I need to shut down my web application during maintenance process, have already gone through many ways like putting app_offline.htm in root directory , disabling the Runtime or disabling it manually via server but i what i need to implement is to do this process completely automated.

What i have is the start and end dates for shut down and flag for those days i.e whether application needed to be shut down on those dates.

Solution that i already have is to create a job in sql server agent which creates and deletes the app_offline.htm file in and from the root directory but what the problem is i need to give static path for the root directory of my application which i don not want to do.

Any help would be much appreciated.
Posted
Comments
Sergey Alexandrovich Kryukov 4-Jun-13 15:33pm    
Maybe an interesting question, but... Did you think about keeping consistency on atomic level? It would allow just to kill the service at anytime without much harm.
—SA
Ariana Bond 4-Jun-13 15:37pm    
This comment of yours is worthless without an answer.
Richard C Bishop 4-Jun-13 15:40pm    
You will not last long here if you speak to people this way. Consider this a warning.
Ariana Bond 4-Jun-13 15:41pm    
Thanks for the warning...
Sergey Alexandrovich Kryukov 4-Jun-13 15:53pm    
This is just the opinion of the OP. No need to make a big deal out of it.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900