4/12/2021 0 Comments Python Install Win32Serviceutil
What is going on with this article Its illegal (copyright infringement, privacy infringement, libel, etc.) Its socially inappropriate (offensive to public order and morals) Its advertising Its spam Other than the above, but not suitable for the Qiita community (violation of guidelines) Python Python.Qiita About Terms Privacy Guideline Release API Help Advertisement Increments About Blog Qiita Team Qiita Jobs Qiita Zine 2011-2020 Increments Inc.We will deliver articles that match you By following users and tags, you can catch up information on technical fields that you are interested in as a whole you can read useful information later efficiently By stocking the articles you like, you can search right away Sign up Login.
![]() But theres a whole existing thread dedicated to this issue: Calling an external command in Python. But theres a method called GetServiceCustomOption that may help. This question has a good description of how you go about doing this, as well as a bunch of links to other related resources. They can be configured to automatically start on boot, and handle failures. Nothing is going to stop anyone from killing the process itself, but to handle that potential situation, you can just create a bat file and use the sc command to pole the service to see if it is running and if not restart the service. Just schedule the bat file to run every 60 seconds (or whatever is reasonable for your script to potentially be down). In general, in bash (as well as most other shells) if you append a to your command it runs the command in the background. There is no need to learn a new tool, and you will even save quite a bit of work if you need to deploy a complicated project across multiple platforms. Keep in mind that supervisord will be running with Cygwin, so you better use paths the Cygwin way (C:myserversproject1 translates to cygdrivecmyserversproject1 in Cygwin). But the things that you can do with supervisorctl work as usual, meaning that you can simply deploy your old configuration file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |