Hi!<br><br>I have two questions about Windows and Pylons...<br><br><a href="http://wiki.pylonshq.com/display/pylonscookbook/How+to+run+Pylons+as+a+Windows+service">http://wiki.pylonshq.com/display/pylonscookbook/How+to+run+Pylons+as+a+Windows+service</a><br>
<br><br>1.)<br><div>I wanna ask something about python services.</div><div><br></div><div><a href="http://groups.google.hu/group/pylons-discuss/browse_thread/thread/f54d8208c3be555e" target="_blank">http://groups.google.hu/group/pylons-discuss/browse_thread/thread/f54d8208c3be555e</a><br>
</div><div><br></div><div>Yesterday I tried to install two of pylons services.</div><div>Interesting thing I saw.</div><div><br></div><div>Every of the installed services are have SAME EXE without any information to identify, which pylons site is need to start...</div>
<div>I have never seen same thing before, so I don't understand, which
information is have PythonService.exe to know which windowsservice.py
need to start...</div><div><br></div><div>Is service name passed to PS.EXE by OS?</div>
<div><br></div><div>I saw that in registry the service is have all data
it needed. But how to know this ONE EXE, which service started it, and
which *.py can it use to start?<br><br><br>2.) The service stopping is not correct:<br><br>The Python service control handler failed. <br> File "C:\Python25\lib\site-packages\win32\lib\win32serviceutil.py", line 791, in ServiceCtrlHandlerEx<br>
self.SvcStop()<br> File "c:\web\pylons\xxx\WindowsService.py", line 91, in SvcStop<br> sys.exit() <br><type 'exceptions.SystemExit'>: <NULL><br><br>If I changed it to sys.exit(0), or (1), I also got this message...<br>
This is a tutorial site, so I don't know, what is the good way to out of service...<br><br><br></div><div>Thanks for your help: dd</div>