A generic linux daemon in python
Project description
pysoldaemon
Welcome to pysol
Copyright (C) 2013/2017 Laurent Labatut / Laurent Champagnac
pysoldaemon is a generic linux daemon in Python.
It supports :
- Double forking
- std redirect to files
- log to file
- working directory change after Fork 1
- start/stop/status/reload commands
It is gevent (co-routines) based.
Usage
An implementation is available in :
- pysoldaemon_test.Daemon.CustomDaemon.CustomDaemon
Source code
- We are pep8 compliant (as far as we can, with some exemptions)
- We use a right margin of 360 characters (please don't talk me about 80 chars)
- All unittest files must begin with
test_
orTest
, should implement setUp and tearDown methods - All tests must adapt to any running directory
- The whole project is backed by gevent (http://www.gevent.org/)
- We use docstring (:return, :rtype, :param, :type etc), they are mandatory
- We use PyCharm "noinspection", feel free to use them
Requirements
- Debian 10 or greater, x64, Python 3.7
Unittests
To run unittests, you will need:
- nothing special except Python and dependencies requirements.
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pysoldaemon-3.11.0.tar.gz
.
File metadata
- Download URL: pysoldaemon-3.11.0.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c82bb669f9821a1fe97688e6c4ae44afee7ad8118e98ba589e3bce54fa48536 |
|
MD5 | 0197c29cc2021adaead31257f227863b |
|
BLAKE2b-256 | fd1091adb32c717890baf57e1014ab1ea4f276b1ad41d670a18b21c6f69f8bae |