{ "info": { "author": "Dylan Jay", "author_email": "software@pretaweb.com", "bugtrack_url": null, "classifiers": [], "description": "Installing\n**********\n\n``hostout.supervisor`` is a plugin for collective.hostout_. Hostout is a\n``zc.buildout`` recipe.\n\nFirst you need a working buildout_ using supervisor. Here's a really simple\none:\n\n>>> write('buildout.cfg',\n... \"\"\"\n... [buildout]\n... parts = helloworld \n...\n... [helloworld]\n... recipe = zc.recipe.egg:scripts\n... eggs = zc.recipe.egg\n... initialization = import sys\n... main=lambda: sys.stdout.write('all your hosts are below to us')\n... entry-points = helloworld=__main__:main\n...\n... [supervisor]\n... recipe = collective.recipe.supervisor\n... programs = 10 helloworld bin/helloworld\n...\n... \"\"\")\n\n>>> print system('bin/buildout -N')\nInstalling helloworld.\nGenerated script '/sample-buildout/bin/helloworld'.\n\n>>> print system('bin/helloworld')\nall your hosts are belong to us\n\nGoogle \"buildout\" and your favourite app framework to find out how to build\nit.\n\nNext we add ``hostout`` to our buildout, and extend hostout by adding the\n``hostout.supervisor`` plugin using the ``extends`` option.\n\n\n>>> write('buildout.cfg',\n... \"\"\"\n... [buildout]\n... parts = helloworld host\n...\n... [helloworld]\n... recipe = zc.recipe.egg:scripts\n... eggs = zc.recipe.egg\n... initialization = import sys\n... main=lambda: sys.stdout.write('all your hosts are below to us')\n... entry-points = helloworld=__main__:main\n...\n... [supervisor]\n... recipe = collective.recipe.supervisor\n... programs = 10 helloworld bin/helloworld\n...\n... [host]\n... recipe = collective.hostout\n... host = 127.0.0.1:10022\n... extends = hostout.supervisor\n... parts = hellowworld supervisor\n...\n... \"\"\")\n\n>>> print system('bin/buildout -N')\n Updating helloworld.\n Installing host.\n Generated script '/sample-buildout/bin/hostout'.\n ...\n\nhostout.supervisor commands\n***************************\n\n>>> print system('bin/hostout host')\n cmdline is: bin/hostout host1 [host2...] [all] cmd1 [cmd2...] [arg1 arg2...]\n Valid commands are:\n ...\n supervisorboot : Installs supervisor into your init.d scripts in order to ensure that supervisor is started on boot\n ...\n supervisorctl : Takes command line arguments and runs supervisorctl on the remote host\n supervisorshutdown : Shutdown the supervisor daemon\n supervisorstartup : Start the supervisor daemon\n ...\n \nThe following options may be used:\n\n``supervisor``\n The name of the supervisor part to stop and restart\n \n``init.d``\n If set, the ``supervisord`` script will be linked into ``init.d`` so any\n machine restart will also start supervisor.\n\nAutomatic startup and shutdown during deployment\n************************************************\n\nIn addition, the supervisor plugin will shutdown supervisor during\npre-deployment and start up supervisor during post-deployment.\n\n>>> print system('bin/hostout host1 deploy')\n Hostout: Running command 'predeploy' from 'hostout.supervisor.fabfile'\n Logging into the following hosts as :\n 127.0.0.1\n [127.0.0.1] sudo: /var/lib/plone/host1/bin/supervisorctl shutdown || echo 'Failed to shutdown'\n ...\n Hostout: Running command 'postdeploy' from 'hostout.supervisor.fabfile'\n ...\n [127.0.0.1] sudo: /var/lib/plone/host1/bin/supervisord\n ...\n [127.0.0.1] sudo: /var/lib/plone/host1/bin/supervisorctl status\n ...\n Hostout: Running command 'postdeploy' from 'collective.hostout.fabfile'\n ...\n\nCredits\n*******\n\nDylan Jay ( software at pretaweb dot com )\n\n.. _buildout: http://pypi.python.org/pypi/zc.buildout\n.. _recipe: http://pypi.python.org/pypi/zc.buildout#recipes\n.. _fabric: http://fabfile.org\n.. _collective.hostout: http://pypi.python.org/pypi/collective.hostout\n.. _hostout: http://pypi.python.org/pypi/collective.hostout\n.. _supervisor: http://pypi.python.org/pypi/collective.recipe.supervisor\n.. _supervisord: http://supervisord.org\n\nRelease History\n***************\n\n1.05 (2014-05-29)\n-----------------\n- tidy up readme [Jean Jordaan]\n- fixed bootstrip install/uninstall [Adam Terrey]\n\n1.0a4 (2010-04-13)\n------------------\n- allows buildout user only deploy\n\n1.0a3 (2010-03-21)\n------------------\n- new sudosupervisor for when you need to boot as root [Dylan Jay]\n- Made compatible with collective.hostout 1.0a5 [Dylan Jay]\n- Improved startup and shutdown so use only buildout-user + reload rather than \"supervisor shutdown\" [Dylan Jay]\n\n\n1.0a2 (2010-06-03)\n------------------\n- falfile entrypoint\n- better init.d script\n\n1.0a1 (2010-02-13)\n------------------\n\n- Moved out of collective.hostout\n- upgraded it to fabric 1.0 and python 2.6", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://svn.plone.org/svn/collective/hostout.supervisor", "keywords": "buildout,fabric,deploy,deployment,server,plone,django,host,hosting", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "hostout.supervisor", "package_url": "https://pypi.org/project/hostout.supervisor/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hostout.supervisor/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://svn.plone.org/svn/collective/hostout.supervisor" }, "release_url": "https://pypi.org/project/hostout.supervisor/1.0a5/", "requires_dist": null, "requires_python": null, "summary": "Plugin for collective.hostout that starts and stops supervisor\n during deployment", "version": "1.0a5" }, "last_serial": 1107444, "releases": { "1.0a1": [ { "comment_text": "", "digests": { "md5": "5d2cdf5a6b1116f0b1b0da98ce0d1f7f", "sha256": "0de4e0c72e44d87bd8a612afea28b6ad66ad9873ce0b6f0119993e0f9d592f8b" }, "downloads": -1, "filename": "hostout.supervisor-1.0a1.tar.gz", "has_sig": false, "md5_digest": "5d2cdf5a6b1116f0b1b0da98ce0d1f7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5815, "upload_time": "2010-02-12T22:44:09", "url": "https://files.pythonhosted.org/packages/b5/09/b970c7a496f4625792ed09747f0fcd50be2cf4a4cab1bb13c29c96546f31/hostout.supervisor-1.0a1.tar.gz" } ], "1.0a2": [ { "comment_text": "", "digests": { "md5": "a2d0bf48a180636b39f9ccca41907d4a", "sha256": "b1b5f9c9eeda997bae3aa34a42cf17279202a2a92bae782771dfec2db589bfdc" }, "downloads": -1, "filename": "hostout.supervisor-1.0a2.tar.gz", "has_sig": false, "md5_digest": "a2d0bf48a180636b39f9ccca41907d4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7019, "upload_time": "2010-06-02T18:18:33", "url": "https://files.pythonhosted.org/packages/75/00/9340085ecc3f8fe37d54cdc3b715589b23ffc42f494934fb74827978ea69/hostout.supervisor-1.0a2.tar.gz" } ], "1.0a3": [ { "comment_text": "", "digests": { "md5": "fbf0e250b84d98eae02f7dacca1deb8a", "sha256": "a333e8a01faef75679068cd14e8d96fc76d55b6fa8f83262974001146bbadd6f" }, "downloads": -1, "filename": "hostout.supervisor-1.0a3.zip", "has_sig": false, "md5_digest": "fbf0e250b84d98eae02f7dacca1deb8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14336, "upload_time": "2011-03-21T02:48:18", "url": "https://files.pythonhosted.org/packages/80/71/a6574428a32d22395cc32705a251ec601c26551461bf081a258bf72ce5a1/hostout.supervisor-1.0a3.zip" } ], "1.0a4": [ { "comment_text": "", "digests": { "md5": "7f72da9cd1df3b271ccf8a59ae783e00", "sha256": "b9bdd723b45f3b11a845dce9d0649bf900d7492f2ac675b399484c395bc60d72" }, "downloads": -1, "filename": "hostout.supervisor-1.0a4.zip", "has_sig": false, "md5_digest": "7f72da9cd1df3b271ccf8a59ae783e00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14440, "upload_time": "2011-04-13T03:51:00", "url": "https://files.pythonhosted.org/packages/72/b0/fa00189444f790d14c9e362679d85e54ea3c2b95c2b8eb8b1e29e44e20a8/hostout.supervisor-1.0a4.zip" } ], "1.0a5": [ { "comment_text": "", "digests": { "md5": "2fc457e7d7cf0aadcb88a0c8914c21f4", "sha256": "6ef6bb09bc764f96a670757332f21fbf79cf843ba300c5b6d32cbd6edce03dd4" }, "downloads": -1, "filename": "hostout.supervisor-1.0a5.tar.gz", "has_sig": false, "md5_digest": "2fc457e7d7cf0aadcb88a0c8914c21f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6175, "upload_time": "2014-05-29T05:52:09", "url": "https://files.pythonhosted.org/packages/44/db/55951b0a97036099455acbc62a6e1b98d6c739e5f338db7a66c7ebce820d/hostout.supervisor-1.0a5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2fc457e7d7cf0aadcb88a0c8914c21f4", "sha256": "6ef6bb09bc764f96a670757332f21fbf79cf843ba300c5b6d32cbd6edce03dd4" }, "downloads": -1, "filename": "hostout.supervisor-1.0a5.tar.gz", "has_sig": false, "md5_digest": "2fc457e7d7cf0aadcb88a0c8914c21f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6175, "upload_time": "2014-05-29T05:52:09", "url": "https://files.pythonhosted.org/packages/44/db/55951b0a97036099455acbc62a6e1b98d6c739e5f338db7a66c7ebce820d/hostout.supervisor-1.0a5.tar.gz" } ] }