[python-win32] Allowing service to interact with desktop
rogelio.flores at gmail.com
Fri Apr 29 19:27:33 CEST 2005
On 12/8/04, Mark Hammond <mhammond at skippinet.com.au> wrote:
> > Is there a way to set my python windows service to run witht the
> > option "Allowing service to interact with desktop" turned on at
> > installation time? I know how to enable it from the windows Services
> > UI, but I'm hoping there is an option similar to "--startup auto" (to
> > set the service to start automatically when the machine starts) so
> > that I can do it from the command-line.
> How did you find out about "--startup"? Running "your_service.py" with no
> args prints:
> Options for 'install' and 'update' commands only:
> --username domain\username : The Username the service is to run under
> --password password : The password for the username
> --startup [manual|auto|disabled] : How the service starts, default = manual
> --interactive : Allow the service to interact with the desktop.
> I think the last one shown is what you are after.
> Be sure to look for the MSDN documentation on this flag - it may not do
> exactly what you want ("interact with the desktop" is slightly
Actually, running python 2.0 and win32all-144.exe I don't see that:
C:\>python my_service.py --interactive
option --interactive not recognized
Usage: 'my_service.py [options] install|update|remove|start [...]|stop|restar
t [...]|debug [...]'
Options for 'install' and 'update' commands only:
--username domain\username : The Username the service is to run under
--password password : The password for the username
--startup [manual|auto|disabled] : How the service starts, default = manual
I guess build 144 doesn't support that option (otherwise please let me
know), but thanks anyway. At least I know that upgrading will work.
More information about the Python-win32