After doing some more tests, I've come to the conclusion that I'll need to
add the waittimeout attribute again, as I do need to make sure a service has
reached the right status after I've performed an action on it ... so I
should allow the user to configure how long the task can wait for a service
to reach a certain status ... ... otherwise performing two actions in a row
(in case of a restart, this means stop and start) will cause problems ...

Gert

----- Original Message ----- 
From: "Erv Walter" <[EMAIL PROTECTED]>
To: "Gert Driesen" <[EMAIL PROTECTED]>; "Nant-Developers (E-Mail)"
<[EMAIL PROTECTED]>
Sent: Sunday, September 07, 2003 5:36 PM
Subject: RE: [nant-dev] servicecontroller task


Great Idea.  I'd love to get a few more <exec> tasks out of my builds.
My only suggestion would be to include a "Restart" action (which would
be equivalent to Stop followed by Start with the appropriate
waitforstatuses).

-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 3:50 AM
To: Nant-Developers (E-Mail)
Subject: [nant-dev] servicecontroller task

Hi,

I'm thinking about adding a task for
stopping/starting/pausing/continueing a service, and at the same time
waiting for it to reach a certain status.

It would look something like this :

<servicecontroller service="iisadmin" action="Start | Stop | Continue |
Pause" waitforstatus="Paused | Running | ...." waittimeout="..." />

As the name suggests, I would use the servicecontroller task to
implement this task, which should make it pretty straightforward.
Ofcourse, this task will be win32-specific, and as such would be part of
the NAnt.Win32 namespace and assembly.

Any remarks, suggestions, ... ?

Gert




-------------------------------------------------------
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


-------------------------------------------------------
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




-------------------------------------------------------
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