Thanks, Charlie, the reference article is especially helpful. Looks like there should be at least a couple ways to solve this. Jim
----- Original Message ----- From: "Charles Reitzel" <[EMAIL PROTECTED]> To: "James Eshelman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 10:44 AM Subject: Re: [Boston.pm] Windows services reload? You should be able to do exactly what you want. There is an API specifically for creating, deleting, starting and stopping NT and Win2K services. The API is not supported by Win95/98/ME, but you can call RegisterServiceProcess(), which will "detach" the process and let it continue after you log off. Not sure about XP, but believe the API is there. The reference is at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/ser vices_0p0z.asp For a sample and a not-very-useful article, see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwbgen/htm l/msdn_ntservic.asp Charlie At 07:58 PM 2/24/2002 -0500, you wrote: >I have a perl script that installs and registers in the registry a Windows >NT service (inetd). I would like to have the WinNT Service Control >Manager pick up the new registry value and start the service without >requiring a system reboot. This appears possible since an install of this >service by the MS Installer starts it without a reboot. Simply loading >the registry, however, doesn't seem to load the Service Manager unless >there's a reboot. Using the 'kill' function (from the NT resource kit) on >the 'services' process and then re-running it proved too heavy-handed a >solution, as you might expect,--hung machine--every service on the system >must get restarted that way. I haven't been able to turn up anything in >the MS Knowledge Base, MSDN library, Win32API, or ResKit help files so far >to indicate how this might be done. I was hoping for something simple and >straightforward like the inetd restart scripts that come with Linux et >al. I'm trying to avoid the MSInstaller and all it's freight and heavy >footprint, with the pure perl solution--about a 10:1 ratio in size and >complexity here. > >Any guidance would be greatly appreciated. > >Regards, >Jim Eshelman > >James Eshelman, >Principal, >Nova Software, Inc. ><http://www.nova-sw.com>www.nova-sw.com
