{"id":13502785,"url":"https://github.com/by-cx/uWSGI-Manager","last_synced_at":"2025-03-29T12:32:42.004Z","repository":{"id":62586901,"uuid":"1839158","full_name":"by-cx/uWSGI-Manager","owner":"by-cx","description":"Manager of uWSGI instances","archived":false,"fork":false,"pushed_at":"2012-05-15T19:08:07.000Z","size":256,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T05:05:26.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/by-cx.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-02T20:13:52.000Z","updated_at":"2018-08-20T10:18:03.000Z","dependencies_parsed_at":"2022-11-03T22:36:46.237Z","dependency_job_id":null,"html_url":"https://github.com/by-cx/uWSGI-Manager","commit_stats":null,"previous_names":["creckx/uwsgi-manager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/by-cx%2FuWSGI-Manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/by-cx%2FuWSGI-Manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/by-cx%2FuWSGI-Manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/by-cx%2FuWSGI-Manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/by-cx","download_url":"https://codeload.github.com/by-cx/uWSGI-Manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246187137,"owners_count":20737458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T22:02:25.008Z","updated_at":"2025-03-29T12:32:41.719Z","avatar_url":"https://github.com/by-cx.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Copyright (c) Adam Strauch\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n    1. Redistributions of source code must retain the above copyright notice,\n       this list of conditions and the following disclaimer.\n   \n    2. Redistributions in binary form must reproduce the above copyright\n       notice, this list of conditions and the following disclaimer in the\n       documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\n#####################################################################\n\nuWSGI Manager\n\nThis is small python script for uWSGI instances. It can read your XML configuration and stop/reload/restart/start/what ever with your uWSGI processes. Originaly it was delevoped for Python hosting Rosti.cz, but parts of administration and tools are open now or will be opened soon. Script works only under root privileges.\n\nUsing:\n\n\t$ mkdir /etc/uwsgi\n\t$ vim /etc/uwsgi/config.xml\n\t[copy modified configuration below]\n\t$ uwsgi-manager.py -l\n\t$ uwsgi-manager.py -R 1\n\nConfig file /etc/uwsgi/config.xml:\n\n\t\u003cyour_server\u003e\n\t\u003cuwsgi id=\"48\"\u003e\n\t        \u003cpythonpath\u003e/home/user/django/\u003c/pythonpath\u003e\n\t        \u003cmaster/\u003e\n\t        \u003cno-orphans/\u003e\n\t        \u003cprocesses\u003e1\u003c/processes\u003e\n\t        \u003coptimize\u003e0\u003c/optimize\u003e\n\t        \u003chome\u003e/home/user/virtualenvs/default\u003c/home\u003e\n\t        \u003climit-as\u003e128\u003c/limit-as\u003e\n\t        \u003cchmod-socket\u003e660\u003c/chmod-socket\u003e\n\t        \u003cuid\u003euser\u003c/uid\u003e\n\t        \u003cgid\u003euser\u003c/gid\u003e\n\t        \u003cpidfile\u003e/home/user/uwsgi/django.pid\u003c/pidfile\u003e\n\t        \u003csocket\u003e/home/user/uwsgi/django.sock\u003c/socket\u003e\n\t        \u003cwsgi-file\u003e/home/user/django/django.wsgi\u003c/wsgi-file\u003e\n\t        \u003cdaemonize\u003e/home/user/uwsgi/django.log\u003c/daemonize\u003e\n\t        \u003cchdir\u003e/home/user/django/\u003c/chdir\u003e\n\t\u003c/uwsgi\u003e\n\t\u003c/your_server\u003e\n\nI assume, you use same paths of uwsgi binaries as I:\n\n\t* /usr/bin/uwsgi\n\t* /usr/local/bin/uwsgi25\n\t* /usr/local/bin/uwsgi27\n\t* /usr/local/bin/uwsgi31\n\t* /usr/local/bin/uwsgi32\n\nIf you want to use another paths, you have to go into code.\n\nIf you are lost, try -h:\n\n\t$ ./uwsgi-manager.py -h\n\tUsage: uwsgi-manager.py [options]\n\n\tOptions:\n\t  -h, --help            show this help message and exit\n\t  -s ID, --start=ID     Start app\n\t  -S ID, --stop=ID      Stop app (sig 9)\n\t  -r ID, --reload=ID    Reload app (sig 1)\n\t  -b ID, --brutal-reload=ID\n\t                        Brutal reload app (sig 15)\n\t  -R ID, --restart=ID   Restart app\n\t  -c ID, --check=ID     Check state of app\n\t  -a, --start-all       Start all apps\n\t  -A, --stop-all        Stop all apps\n\t  -w, --reload-all      Reload all apps\n\t  -W, --restart-all     Restart all apps\n\t  -B, --brutal-reload-all\n\t                        Brutal reload all apps\n\t  -l, --list            Print state of all apps\n\n\nOr send me e-mail.\n\nAdam Strauch \u003ccx@initd.cz\u003e\n\nFeel free send some useful patch too :-)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fby-cx%2FuWSGI-Manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fby-cx%2FuWSGI-Manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fby-cx%2FuWSGI-Manager/lists"}