Hi Soumitra,

I think you should actually create a "servicecontroller" task that allows
any service to be started, paused, continued or stopped ...

so you'd have something like this :

<servicecontroller service="w3svc" action="Start | Stop | Continue | Pause"
machine="<computername>" />

you could also add another attribute to indicate if the task should wait for
a specific state to be reached by the service.

So instead of creating a wrapper around net.exe, I would recommend using the
System.ServiceProcess.ServiceController class to control the services.

Gert

----- Original Message ----- 
From: "Soumitra Bajpai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 28, 2003 10:58 AM
Subject: [nant-dev] IIS Task


> Dear All,
>
>
> First of all this might already be present .So if anyone is already
working
> on the task ,please ignore this.
>
>
> Aim
>
> I was thinking of writing a IIS Task. The functionality of the task is to
> start and a stop the IIS . This task will come in handy while building
since
> many a times the IIS holds the executables in memory .
>
>
> IIS Task
>
> The IIS Task will execute ,these commands
>
> net start  "world wide web publishing service"
> net stop "world wide web publishing service"
>
> so actually speaking the "net" task functionality is being used . My
> confusion is should I simply make an IIS Task
>
> <iis action="start"/>
> <iis action="stop"/>
>
> or should  make it more generic
>
> <net name="world wide web publishing service"
> action="start">
> <net name="world wide web publishing service"
> action="stop">
>
>
> Please let me know what you guys think .
>
>
> Thanks & Warm Regards,
>
> Soumitra Bajpai
> Microsoft Technologies,
> Systems Analyst
> LG  Software
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
>
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to