I followed the instructions in this about writing a Python script to be used as a service. I put the loop code in def main().
I installed the service using python my_script.py install. I managed to start and stop the service through services.mscin Windows XP.
This is a logging program that is designed to record logs while Windows is running. He does not need to care about who or who enters or exits the system. My problem is that the service will stop when logging out . How to make it withstand a logout?
source
share