<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Run Windows Service as a console program</title>
	<atom:link href="http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/</link>
	<description>A site for my programming pet projects</description>
	<lastBuildDate>Fri, 12 Mar 2010 08:49:00 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: DaRage</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-67843</link>
		<dc:creator>DaRage</dc:creator>
		<pubDate>Thu, 28 May 2009 09:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-67843</guid>
		<description>I would never run multiple services in one process. This is against the service boundary definition and it&#039;s a hard and fast rule. because if once service crashes it will kill the others too. I&#039;ve seen it happen.

Too bad so much effort was spent to support multiple services in a process but I would stick with the simple initial version. simplicity is truth.</description>
		<content:encoded><![CDATA[<p>I would never run multiple services in one process. This is against the service boundary definition and it&#8217;s a hard and fast rule. because if once service crashes it will kill the others too. I&#8217;ve seen it happen.</p>
<p>Too bad so much effort was spent to support multiple services in a process but I would stick with the simple initial version. simplicity is truth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiran</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-67336</link>
		<dc:creator>kiran</dc:creator>
		<pubDate>Tue, 07 Apr 2009 18:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-67336</guid>
		<description>excellent</description>
		<content:encoded><![CDATA[<p>excellent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt Harriger</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-67065</link>
		<dc:creator>Kurt Harriger</dc:creator>
		<pubDate>Fri, 06 Mar 2009 02:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-67065</guid>
		<description>I&#039;ve used this approach for awhile.  But I have discovered one small problem with using UserInteractive flag.  If you run the process via windows task scheduler UserInteractive will be false and it will try to start as a service and fail. Somehting to keep in mind anyway.  If you find a solution to it I&#039;d love to know what it is, but at the moment the best approach I&#039;ve found is to use a commandline argument to override the UserInteractive flag.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve used this approach for awhile.  But I have discovered one small problem with using UserInteractive flag.  If you run the process via windows task scheduler UserInteractive will be false and it will try to start as a service and fail. Somehting to keep in mind anyway.  If you find a solution to it I&#8217;d love to know what it is, but at the moment the best approach I&#8217;ve found is to use a commandline argument to override the UserInteractive flag.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThomasK</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-61165</link>
		<dc:creator>ThomasK</dc:creator>
		<pubDate>Sat, 10 Jan 2009 05:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-61165</guid>
		<description>I do not see this behaviour here. My application is a console app, but no matter how i start it (from cosole or SCM) i don&#039;t see a new console window appear.</description>
		<content:encoded><![CDATA[<p>I do not see this behaviour here. My application is a console app, but no matter how i start it (from cosole or SCM) i don&#8217;t see a new console window appear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-60702</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Thu, 08 Jan 2009 15:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-60702</guid>
		<description>The problem I see with this approach is that when you set the project&#039;s output type to console, the console is always launched, even when you are running in service mode.  Short of a way of changing output type dynamically or maybe hiding the console window, I don&#039;t see a way around.  When running on the server as a service, I don&#039;t ever want to see the console popup.</description>
		<content:encoded><![CDATA[<p>The problem I see with this approach is that when you set the project&#8217;s output type to console, the console is always launched, even when you are running in service mode.  Short of a way of changing output type dynamically or maybe hiding the console window, I don&#8217;t see a way around.  When running on the server as a service, I don&#8217;t ever want to see the console popup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dofbenoh</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-58881</link>
		<dc:creator>dofbenoh</dc:creator>
		<pubDate>Fri, 02 Jan 2009 08:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-58881</guid>
		<description>i have process engine that contains different methods to be processed. I put the methods in my onstarts method of my windows service. It only execute the first method while ignore the rest. These methods are suppose to execute in sequence. Pls, help me out</description>
		<content:encoded><![CDATA[<p>i have process engine that contains different methods to be processed. I put the methods in my onstarts method of my windows service. It only execute the first method while ignore the rest. These methods are suppose to execute in sequence. Pls, help me out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryanbcook</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-20410</link>
		<dc:creator>bryanbcook</dc:creator>
		<pubDate>Tue, 29 Apr 2008 05:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-20410</guid>
		<description>Just to follow up, here&#039;s how I managed to get multiple services up and running in a single process:

http://stupiddumbguy.blogspot.com/2008/04/running-multiple-net-services-within.html</description>
		<content:encoded><![CDATA[<p>Just to follow up, here&#8217;s how I managed to get multiple services up and running in a single process:</p>
<p><a href="http://stupiddumbguy.blogspot.com/2008/04/running-multiple-net-services-within.html" rel="nofollow">http://stupiddumbguy.blogspot.com/2008/04/running-multiple-net-services-within.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryanbcook</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-20372</link>
		<dc:creator>bryanbcook</dc:creator>
		<pubDate>Sat, 26 Apr 2008 01:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-20372</guid>
		<description>Gene/Jerry, I&#039;ve also seen this problem.  I&#039;m actively researching it.

http://stupiddumbguy.blogspot.com</description>
		<content:encoded><![CDATA[<p>Gene/Jerry, I&#8217;ve also seen this problem.  I&#8217;m actively researching it.</p>
<p><a href="http://stupiddumbguy.blogspot.com" rel="nofollow">http://stupiddumbguy.blogspot.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-14360</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Tue, 04 Mar 2008 14:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-14360</guid>
		<description>Gene, I have the same problem.  Two services, both are instantiated, but only the first has its OnStart() called.  Did you ever resolve this issue?

Thanks,
Jerry</description>
		<content:encoded><![CDATA[<p>Gene, I have the same problem.  Two services, both are instantiated, but only the first has its OnStart() called.  Did you ever resolve this issue?</p>
<p>Thanks,<br />
Jerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: einar</title>
		<link>http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/comment-page-1/#comment-12428</link>
		<dc:creator>einar</dc:creator>
		<pubDate>Wed, 13 Feb 2008 21:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://tech.einaregilsson.com/2007/08/15/run-windows-service-as-a-console-program/#comment-12428</guid>
		<description>Cool :)</description>
		<content:encoded><![CDATA[<p>Cool <img src='http://tech.einaregilsson.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
