<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using .NET Code to Set a Windows Service to Automatically Restart on Failure</title><link>http://blogs.msdn.com/b/anlynes/archive/2006/07/30/using-.net-code-to-set-a-windows-service-to-automatically-restart-on-failure.aspx</link><description>This one popped up this week as I was investigating why a particular Windows service written in .NET 1.1 was terminating. After a quick MSN search, I only came up with a few fragments of C#, but not a complete solution. In attempting my own implementation</description><dc:language>en-AU</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Using .NET Code to Set a Windows Service to Automatically Restart on Failure</title><link>http://blogs.msdn.com/b/anlynes/archive/2006/07/30/using-.net-code-to-set-a-windows-service-to-automatically-restart-on-failure.aspx#10167632</link><pubDate>Tue, 24 May 2011 07:04:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10167632</guid><dc:creator>IFK</dc:creator><description>&lt;p&gt;Excellent code sample. Helped me a lot. Thanks for the contribution&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10167632" width="1" height="1"&gt;</description></item><item><title>re: Using .NET Code to Set a Windows Service to Automatically Restart on Failure</title><link>http://blogs.msdn.com/b/anlynes/archive/2006/07/30/using-.net-code-to-set-a-windows-service-to-automatically-restart-on-failure.aspx#7132084</link><pubDate>Wed, 16 Jan 2008 18:19:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7132084</guid><dc:creator>engenho</dc:creator><description>&lt;p&gt;VERY GOOD/USEFULL POST DUDE ;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7132084" width="1" height="1"&gt;</description></item><item><title>Using .NET Code to Set a Windows Service to Automatically Restart</title><link>http://blogs.msdn.com/b/anlynes/archive/2006/07/30/using-.net-code-to-set-a-windows-service-to-automatically-restart-on-failure.aspx#683547</link><pubDate>Mon, 31 Jul 2006 02:29:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:683547</guid><dc:creator>DotNetKicks.com</dc:creator><description>You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=683547" width="1" height="1"&gt;</description></item><item><title>re: Using .NET Code to Set a Windows Service to Automatically Restart on Failure</title><link>http://blogs.msdn.com/b/anlynes/archive/2006/07/30/using-.net-code-to-set-a-windows-service-to-automatically-restart-on-failure.aspx#683359</link><pubDate>Sun, 30 Jul 2006 20:38:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:683359</guid><dc:creator>andersonimes</dc:creator><description>Great article. &amp;nbsp;If you aren't familiar with it, there is a great Wiki out there for stuff like this called &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://www.pinvoke.net/&amp;quot;&amp;gt;PInvoke.Net&amp;lt;/a&amp;gt;"&gt;http://www.pinvoke.net/&amp;quot;&amp;gt;PInvoke.Net&amp;lt;/a&amp;gt;&lt;/a&gt;. &amp;nbsp;You might contribute this to Pinvoke. &amp;nbsp;It's lacking an article on ChangeServiceConfig2. &amp;nbsp;It only has ChangeServiceConfig, located here (with a link to a future article on ChangeServiceConfig2):&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.pinvoke.net/default.aspx/advapi32/ChangeServiceConfig.html"&gt;http://www.pinvoke.net/default.aspx/advapi32/ChangeServiceConfig.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=683359" width="1" height="1"&gt;</description></item></channel></rss>