{ "info": { "author": "Doug Winter", "author_email": "doug.winter@isotoma.com", "bugtrack_url": null, "classifiers": [ "Framework :: Buildout", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX" ], "description": "GoCaptain start and stop scripts\n================================\n\nThe GoCaptain [#]_ buildout recipe produces a script to start and stop daemons,\nsimilar to those you find in /etc/init.d. By default it will inspect your\nsystem and either write a \"simple\" script, such as you might produce yourself\nor produce a LinuxStandard Base variation, that provides more tooling.\n\nIn particular the LSB scripts will try multiple times to shut down your daemon,\nand will not start it if it is already running.\n\nThis package also provides a simple way to produce these scripts from other\nbuildout recipes - see `isotoma.recipe.varnish`_ for an example.\n\n.. _`isotoma.recipe.varnish`: http://pypi.python.org/pypi/isotoma.recipe.varnish\n\nThe buildout recipe\n-------------------\n\nA simple example would be::\n\n [example]\n recipe = isotoma.recipe.gocaptain\n daemon = /usr/bin/example\n name = example\n description = example daemon for that thing i did that time\n pidfile = /var/tmp/example.pid\n args = \n -P ${example:pidfile}\n -w /var/tmp/example.log\n\nThis will produce a script in bin/example that launches your daemon, and shuts\nit down again later, using the PID in the pidfile.\n\nOptions\n~~~~~~~\n\nThe mandatory options this recipe accepts are:\n\ndaemon\n The path to the daemon executable file\nname\n The name of the daemon, displayed in log messages\ndescription\n A longer description, shown on the console during start and stop\npidfile\n A path to a file to store the PID of the new daemon in\nargs\n The arguments for the daemon. These will be formatted in the output script as you provide them, with continuations provided as needed\n\nIn addition you can provide:\n\ntemplate\n A path to the template for your start/stop script. This will be used in preference to the templates provided with this package.\n\nCalling from other code\n-----------------------\n\nIf you wish to use this from one of your own recipes, I suggest you do\nsomething like::\n\n from isotoma.recipe import gocaptain\n gc = gocaptain.Automatic()\n f = open(\"/path/to/script\", \"w\")\n gc.write(f, daemon=\"/usr/sbin/thing\", \n args=\"-D -P /path/to/pid\",\n name=\"my thing\", description=\"thing\")\n f.close()\n os.chmod(target, 0755)\n\nThe Automatic module will select the Simple or LinuxStandardBase variants, by\ninspecting your system (very simplisticly!).\n\nLicense\n-------\n\nCopyright 2010 Isotoma Limited\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n.. [#] The name comes from Cordwainer Smith", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/isotoma.recipe.gocaptain", "keywords": "buildout", "license": "Apache Software License", "maintainer": null, "maintainer_email": null, "name": "isotoma.recipe.gocaptain", "package_url": "https://pypi.org/project/isotoma.recipe.gocaptain/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/isotoma.recipe.gocaptain/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/isotoma.recipe.gocaptain" }, "release_url": "https://pypi.org/project/isotoma.recipe.gocaptain/0.0.9/", "requires_dist": null, "requires_python": null, "summary": "Starting and stopping daemons", "version": "0.0.9" }, "last_serial": 793483, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "1938ca7179be22336d1e679d9f22f87b", "sha256": "331a16a3044df14abe0454d52244853d5a5bda8f390c3728a690fab877171087" }, "downloads": -1, "filename": "isotoma.recipe.gocaptain-0.0.0.tar.gz", "has_sig": false, "md5_digest": "1938ca7179be22336d1e679d9f22f87b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4225, "upload_time": "2010-02-28T23:21:51", "url": "https://files.pythonhosted.org/packages/77/f9/70ddada2bcb19e8af1868d87e7bfd4d98d0f46af2195f9fe576acaa91df3/isotoma.recipe.gocaptain-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "6034f71eca259376561044b852259356", "sha256": "bb7df30bba5663b7b9c15f50a1a3c54b1419ba359c8d87a5fbf26acfc0ffc9d1" }, "downloads": -1, "filename": "isotoma.recipe.gocaptain-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6034f71eca259376561044b852259356", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4625, "upload_time": "2010-02-28T23:38:21", "url": "https://files.pythonhosted.org/packages/6a/38/332c16f22b919894261066477aa2a49331439c0d5fdebe5b0c4dbc9fcde3/isotoma.recipe.gocaptain-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4519661dfebba71be48f2602d3b275c7", "sha256": "97cb99a08bbca580550f5ab9b9f34ea5d773248e9479c91e4fc079551d1afc31" }, "downloads": -1, "filename": "isotoma.recipe.gocaptain-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4519661dfebba71be48f2602d3b275c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4567, "upload_time": "2010-02-28T23:40:06", "url": "https://files.pythonhosted.org/packages/8d/7b/1052f7f54f8f7ff625a95bced5698cc01c14a384f9a32d048a7e97bff89b/isotoma.recipe.gocaptain-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "1bc218fb8115ecdb2f8520f04b64a265", "sha256": "46ccfb125482a1c6e852e836c40fabbea1822df88431529e3c9e163c359e2f08" }, "downloads": -1, "filename": "isotoma.recipe.gocaptain-0.0.3.tar.gz", "has_sig": false, "md5_digest": "1bc218fb8115ecdb2f8520f04b64a265", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4575, "upload_time": "2010-03-01T21:40:26", "url": "https://files.pythonhosted.org/packages/24/ef/1b758ef708d5f1ce5c8f61527fd22ba2304a8d1eed7e9a2da9947bfbf64d/isotoma.recipe.gocaptain-0.0.3.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "6fbabe4bf77457dcf8ad4878087cbf76", "sha256": "1b29c5deea62ac6171bbd91cba662b0f4697dcc16f1af2b4b99de8d9a00d3a21" }, "downloads": -1, "filename": "isotoma.recipe.gocaptain-0.0.5.tar.gz", "has_sig": false, "md5_digest": "6fbabe4bf77457dcf8ad4878087cbf76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5093, "upload_time": "2010-03-26T12:21:05", "url": "https://files.pythonhosted.org/packages/1c/f4/1a98e903f24c5dd819044856d8b79d393c0a9c2c7ed0b1b113b74aa202a2/isotoma.recipe.gocaptain-0.0.5.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "eca4c7e018271849bc6807079130b56c", "sha256": "341254086e0b46885e9efbb06738870de608f07e5f740e0cc8c037780a037125" }, "downloads": -1, "filename": "isotoma.recipe.gocaptain-0.0.7.tar.gz", "has_sig": false, "md5_digest": "eca4c7e018271849bc6807079130b56c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5264, "upload_time": "2010-04-28T21:17:15", "url": "https://files.pythonhosted.org/packages/83/7a/1e88aaf127f42955bc3def14380b0038530f7e921c8c9fac1e48388e41b3/isotoma.recipe.gocaptain-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "bbc9082c546757d6f4c8c91bcd59054a", "sha256": "25ce27c62bb12d61503e8799e0de8e2d36e85fcfdee76e608052f31026ed21f1" }, "downloads": -1, "filename": "isotoma.recipe.gocaptain-0.0.8.tar.gz", "has_sig": false, "md5_digest": "bbc9082c546757d6f4c8c91bcd59054a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5372, "upload_time": "2010-04-30T22:50:29", "url": "https://files.pythonhosted.org/packages/e7/a4/b15d6b9ec6cfe2318642bade52721ffedac8a3e4afb8878f402ce35916c2/isotoma.recipe.gocaptain-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "5e52c9f9c891fb039bc3c523c40b5555", "sha256": "fdef841ccbfb694b5e9c049faa761a1c19bbb45afe6c625212529477fa16a026" }, "downloads": -1, "filename": "isotoma.recipe.gocaptain-0.0.9.tar.gz", "has_sig": false, "md5_digest": "5e52c9f9c891fb039bc3c523c40b5555", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5358, "upload_time": "2011-11-09T12:56:10", "url": "https://files.pythonhosted.org/packages/83/d3/5d913684f2258ced06d4e0d8589331e0c5b19a35b7cc08a4eb63656c9262/isotoma.recipe.gocaptain-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e52c9f9c891fb039bc3c523c40b5555", "sha256": "fdef841ccbfb694b5e9c049faa761a1c19bbb45afe6c625212529477fa16a026" }, "downloads": -1, "filename": "isotoma.recipe.gocaptain-0.0.9.tar.gz", "has_sig": false, "md5_digest": "5e52c9f9c891fb039bc3c523c40b5555", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5358, "upload_time": "2011-11-09T12:56:10", "url": "https://files.pythonhosted.org/packages/83/d3/5d913684f2258ced06d4e0d8589331e0c5b19a35b7cc08a4eb63656c9262/isotoma.recipe.gocaptain-0.0.9.tar.gz" } ] }