{ "info": { "author": "Don Spaulding", "author_email": "donspauldingii@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: No Input/Output (Daemon)", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3" ], "description": "============\nSimpleDaemon\n============\n\nA fork of `Shane Hathaway's daemon.py `_ script.\n\n\nFeatures\n========\n\n* reads the command line\n* reads a configuration file\n* configures logging\n* calls root-level setup code\n* drops privileges\n* calls user-level setup code\n* detaches from the controlling terminal\n* checks and writes a pidfile\n\n\nInstallation\n============\n::\n pip install simpledaemon\n\n\nExample\n=======\nWriting a daemon requires creating two files, a daemon\nfile which simply enters an infinite loop and does whatever\nyou want it to do, and a configuration file with the same name\nwhich tells `simpledaemon` how to setup your daemon.\n\nhellodaemon.py::\n\n import simpledaemon\n import logging\n import time\n\n class HelloDaemon(simpledaemon.Daemon):\n default_conf = '/etc/hellodaemon.conf'\n section = 'hello'\n\n def run(self):\n while True:\n logging.info('The daemon says hello')\n time.sleep(1)\n\n if __name__ == '__main__':\n HelloDaemon().main()\n\nhellodaemon.conf::\n\n [hello]\n pidfile = ./hellodaemon.pid\n logfile = ./hellodaemon.log\n loglevel = info\n\n\nUsage\n=====\nTo use your new daemon, execute your script like so::\n\n ./hello.py --start\n\nStopping is similar::\n\n ./hello.py --stop\n\nFor a full list of options, see the help::\n\n ./hello.py --help\n\n\nBugs\n====\nIf you come across any bugs in simpledaemon. Kindly file an issue at: https://bitbucket.org/donspaulding/simpledaemon/issues/new\n\nPull requests are also welcome.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/donspaulding/simpledaemon/", "keywords": null, "license": "The MIT License\n\nCopyright (c) 2010 Shane Hathaway\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "SimpleDaemon", "package_url": "https://pypi.org/project/SimpleDaemon/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/SimpleDaemon/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/donspaulding/simpledaemon/" }, "release_url": "https://pypi.org/project/SimpleDaemon/1.3.0/", "requires_dist": null, "requires_python": null, "summary": "Provides a simple Daemon class to ease the process of forking a python application on Unix systems.", "version": "1.3.0" }, "last_serial": 785660, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "8737a5767410abf9dc820c0eb25390a4", "sha256": "c3302f271e29e81fd56d24c640739fa09860539caef6f1eaf2d86e876c6c25b0" }, "downloads": -1, "filename": "SimpleDaemon-1.0.0.tar.gz", "has_sig": false, "md5_digest": "8737a5767410abf9dc820c0eb25390a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5382, "upload_time": "2010-05-27T00:46:19", "url": "https://files.pythonhosted.org/packages/2b/f6/bd2bfc92312c216f0f640bb49e6207d3fc60f0f7c62e28c61a7125b39d82/SimpleDaemon-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "10ab1ebe102ed17ed452c119cd4c5a1a", "sha256": "4bf894d0431c32f59d9627066bd6030dcae7a808778279fd87cbdf90c0e76877" }, "downloads": -1, "filename": "SimpleDaemon-1.0.1.tar.gz", "has_sig": false, "md5_digest": "10ab1ebe102ed17ed452c119cd4c5a1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5510, "upload_time": "2010-05-27T02:25:47", "url": "https://files.pythonhosted.org/packages/c6/66/6a2929fd3c23afb9c6bbbd2259ba4d29d5daf92a4a1d8b0e32ef551f1888/SimpleDaemon-1.0.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "dbb5e71f745d01efaf305ab0663d9b9b", "sha256": "bb1f3a5baacbfc770227f6837b01d8dcd0454e90f75c385f6a1b7b74fa80e64c" }, "downloads": -1, "filename": "SimpleDaemon-1.3.0.tar.gz", "has_sig": false, "md5_digest": "dbb5e71f745d01efaf305ab0663d9b9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7052, "upload_time": "2013-02-27T22:20:31", "url": "https://files.pythonhosted.org/packages/d3/02/0860504de21058537d13213d9058dc6cb33c06f90bd43cabd606ab47c7a8/SimpleDaemon-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dbb5e71f745d01efaf305ab0663d9b9b", "sha256": "bb1f3a5baacbfc770227f6837b01d8dcd0454e90f75c385f6a1b7b74fa80e64c" }, "downloads": -1, "filename": "SimpleDaemon-1.3.0.tar.gz", "has_sig": false, "md5_digest": "dbb5e71f745d01efaf305ab0663d9b9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7052, "upload_time": "2013-02-27T22:20:31", "url": "https://files.pythonhosted.org/packages/d3/02/0860504de21058537d13213d9058dc6cb33c06f90bd43cabd606ab47c7a8/SimpleDaemon-1.3.0.tar.gz" } ] }