There may be a time where your webserver IIS (Internet Information Server) encounters a problem and you need to restart it. |
If data is being written via a website or an application that uses IIS, a forced reboot on IIS may result in data loss.
To combat this there is a nifty command that can be used which will try and stop IIS but will wait until it has finished processing it's current task. In order to run this command do the following :
1. Open up a command prompt (Winkey + R and type cmd)
2. type in "iisreset /noforce"
3. You will see that it tries to stop IIS but fails. This is normal as it will wait for IIS to finish.
4. After 30 secs to a minute, try the command again and you will see that it stops the service and then restarts it without any data loss.
No comments:
Post a Comment