Groups | Blog | Home
all groups > dotnet distributed apps > march 2004 >

dotnet distributed apps : Windows Service Auto-Restart


John Lepone
3/11/2004 1:15:32 PM
I have a windows service written in VB.NET that needs to be able to
restart itself. How would I go about doing this?

The server is a Windows 2000 box.



*** Sent via Developersdex http://www.developersdex.com ***
Marc Allen
3/11/2004 5:46:10 PM
I was able to do it in C# by setting the StartType of the ServiceInstaller

implementation

serviceInstaller1.StartType = ServiceStartMode.Automatic

The default is manual mode

----- John Lepone wrote: ----

I have a windows service written in VB.NET that needs to be able t
restart itself. How would I go about doing this

The server is a Windows 2000 box



*** Sent via Developersdex http://www.developersdex.com **
Don't just participate in USENET...get rewarded for it
John Lepone
3/12/2004 6:51:28 AM
My bad. I should have been more clear. The Windows Service starts
automatically. I want it to be able to force itself to re-start.
(Completely end execution and restart)



*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button