alexsilva / supervisor

Supervisor process control system for Windows
http://supervisord.org
Other
118 stars 26 forks source link

run as service but cannot stop #9

Closed potoo0 closed 4 years ago

potoo0 commented 4 years ago

I registered supervisor as windows service, but this service cannot be stop.

After click "stop" in the figure 1, I got 1053 error and supervisord still alive.

image(figure 1)

supervisor pyv3.6-service.log:

2019-12-30 20:15:54,444 [INFO] supervisor config path: E:\testsv\supervisor\supervisord.conf
2019-12-30 20:15:56,762 [INFO] supervisor starting...
2019-12-30 20:17:44,085 [INFO] supervisorctl shutdown
2019-12-30 20:17:46,113 [ERROR] supervisorctl shutdown execution failed
Traceback (most recent call last):
  File "D:\Anaconda3\lib\site-packages\supervisor\services.py", line 137, in SvcStop
    stdout=stdout)
  File "D:\Anaconda3\lib\site-packages\supervisor\supervisorctl.py", line 1433, in main
    sys.exit(c.exitstatus)
SystemExit: 1
alexsilva commented 4 years ago

Update your version from github to get the fix.

python -m pip install git+https://github.com/alexsilva/supervisor.git@windows -U

potoo0 commented 4 years ago

Not working. Actually, I already upgrade to 4.1.1 before this testcase.

potoo0 commented 4 years ago

em... After I upgrade from this repo, service raise same error code: 1053. and service still alive in background.

image

alexsilva commented 4 years ago

Can not be the same error.

Did you update with the fix?

python -m pip install git+https://github.com/alexsilva/supervisor.git@windows -U

Fix

potoo0 commented 4 years ago

fixed. Oh, I forgot reinstall service :), sorry.