NT Services and EventLog problems

F. Petitjean littlejohn.75 at news.noos.fr
Tue Mar 2 14:26:13 EST 2004


On Mon, 1 Mar 2004 17:20:10 -0600, Larry Bates <lbates at swamisoft.com> wrote:
> I have tried everything I know to get my NT service
> to make correct entries in the NT Event Log when the
> service is started and stopped (and eventually when
> permanent failures occur).
> 
> I also inserted the following to make the proper
> registry entries when the service is installed:
> 
> win32evtlogutil.AddSourceToRegistry('AFR',
>     'C:\Python22\Lib\site-Packages\win32\PythonService.exe',
>     'Application')

Second parameter seems too be a filepath, try to use raw strings : 
   r'C:\Python22\Lib\site-Packages\win32\PythonService.exe'
and launch regedit to check registry entries.
> 
> Thanks in advance for any assistance.
> 
Regards,



More information about the Python-list mailing list