I think a very clear name would be "computername".  I don't think anyone
would misinterpret that attribute name.  If you do a /? On netsvc.exe,
the usage help says "NETSVC servicename \\computername /command" 

Looking forward to using this new task.

Jason

-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 09, 2003 3:02 AM
To: Morris, Jason; Nant-Developers (E-Mail)
Subject: Re: [nant-dev] servicecontroller task

Hi Morris,

It should work with remote services, there's a "machine" (should I
rename it to "server" or "computer" ?) attribute that allows you to
specifiy the server name.

Gert

----- Original Message -----
From: "Morris, Jason" <[EMAIL PROTECTED]>
To: "Nant-Developers (E-Mail)" <[EMAIL PROTECTED]>
Sent: Monday, September 08, 2003 7:01 PM
Subject: RE: [nant-dev] servicecontroller task


Any chance to make this task work for remote services?

In my build/deploy setup, I need to stop/start/restart services on our
production box, from our build box.  I currently use the <exec> task
with netsvc.exe so that I can specify a remote machine.  I think I got
netsvc.exe out of the Win2K resource kit, but memory is a little
fuzzy...

It would be great if this task could do that by specifying an attribute
like computer="" or server="" or whatever name appeals to people.

Jason

-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 11:45 PM
To: Erv Walter; Nant-Developers (E-Mail)
Subject: Re: [nant-dev] servicecontroller task

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


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