|
NAME
====
DaemonLite is a library for writing system daemons in Python. It is distributed under MIT license.
Based on https://github.com/serverdensity/python-daemon
|
SYNOPSIS
========
.. code-block::
from DaemonLite import DaemonLite
class Staff(DaemonLite) :
def run(self) :
# Do something
staff = Staff('/var/staff/staff.pid')
staff.start()
|
Actions
===========
start() - starts the daemon (creates PID and daemonizes).
stop() - stops the daemon (stops the child process and removes the PID).
restart() - does stop() then start().
|
Foreground
===========
This is useful for debugging because you can start the code without making it a daemon. The running script then depends on the open shell like any normal Python script.
To do this, just call the run() method directly.
.. code-block::
staff.run()
|
DESCRIPTION
===========
This is a Python class that will daemonize your Python script so it can continue running in the background. It works on Unix, Linux and OS X, creates a PID file and has standard commands (start, stop, restart) + a foreground mode.
Raw data
{
"_id": null,
"home_page": "https://github.com/laodifang/DaemonLite.git",
"name": "DaemonLite",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Python Daemon",
"author": "Ren Peng",
"author_email": "ithink.ren@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b7/28/8cae8f6f1772f8d979dad148f64e3db2d2669751b11f2fa7bd9c63ff0f7e/DaemonLite-0.0.2.tar.gz",
"platform": "UNKNOWN",
"description": "|\n\nNAME\n====\n\n DaemonLite is a library for writing system daemons in Python. It is distributed under MIT license.\n\n Based on https://github.com/serverdensity/python-daemon\n\n\n|\n\nSYNOPSIS\n========\n\n.. code-block::\n\n\n from DaemonLite import DaemonLite\n\n class Staff(DaemonLite) :\n def run(self) :\n # Do something\n \n staff = Staff('/var/staff/staff.pid')\n staff.start()\n\n\n|\n\nActions\n===========\n start() - starts the daemon (creates PID and daemonizes).\n stop() - stops the daemon (stops the child process and removes the PID).\n restart() - does stop() then start().\n\n\n|\n\nForeground\n===========\n This is useful for debugging because you can start the code without making it a daemon. The running script then depends on the open shell like any normal Python script.\n\n To do this, just call the run() method directly.\n\n.. code-block::\n\n\n staff.run()\n\n\n|\n\nDESCRIPTION\n===========\n This is a Python class that will daemonize your Python script so it can continue running in the background. It works on Unix, Linux and OS X, creates a PID file and has standard commands (start, stop, restart) + a foreground mode.",
"bugtrack_url": null,
"license": "MIT",
"summary": "This is a Python class that will daemonize your Python script so it can continue running in the background",
"version": "0.0.2",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/laodifang/DaemonLite.git"
},
"split_keywords": [
"python",
"daemon"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b7288cae8f6f1772f8d979dad148f64e3db2d2669751b11f2fa7bd9c63ff0f7e",
"md5": "161a4ee9b3ba4a9197b31afe32d59b3a",
"sha256": "de1fbdf8837acbe1009106aae051d4f3add978ae055f35313952a63ccac31088"
},
"downloads": -1,
"filename": "DaemonLite-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "161a4ee9b3ba4a9197b31afe32d59b3a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3213,
"upload_time": "2015-09-30T08:07:39",
"upload_time_iso_8601": "2015-09-30T08:07:39.403909Z",
"url": "https://files.pythonhosted.org/packages/b7/28/8cae8f6f1772f8d979dad148f64e3db2d2669751b11f2fa7bd9c63ff0f7e/DaemonLite-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2015-09-30 08:07:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "laodifang",
"github_project": "DaemonLite",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "daemonlite"
}