Hi,
I successfully used your script to start/stop/restart a Cold Fusion Server service on an NT4 machine.
Especially the restart feature is nice as it is not available in the NT4 service manager.
But, I would like to start/stop the service on a remote machine.
Is there a way to specify the remote machine on the command line so that win32serviceutil.HandleCommandLine passes this properly to the request handlers depending on the action?
Also, I did not find an option to check the status of a service using HandleCommandLine.
It would be nice not having to write an own implementation of this command line argument handler.
Peter
-----Ursprüngliche Nachricht-----
Von: Andrew Chabokha [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 21. Juni 2001 21:16
An: Robin Siebler; [EMAIL PROTECTED]
Betreff: Re: How to start/stop/check a service
# ts1.py
# Test service
#
import win32serviceutil
import win32service
import win32event
class TService(win32serviceutil.ServiceFramework):
... <cut/>
if __name__ == '__main__':
win32serviceutil.HandleCommandLine(TService)