mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 04:46:28 -04:00
Simple command line runner on top of devel/py-daemon
This commit is contained in:
parent
5ebc72a86c
commit
5c4dfbdd4a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=455148
4 changed files with 45 additions and 0 deletions
|
@ -4350,6 +4350,7 @@
|
|||
SUBDIR += py-cycler
|
||||
SUBDIR += py-d2to1
|
||||
SUBDIR += py-daemon
|
||||
SUBDIR += py-daemon-runner
|
||||
SUBDIR += py-daemonize
|
||||
SUBDIR += py-daemons
|
||||
SUBDIR += py-dal
|
||||
|
|
18
devel/py-daemon-runner/Makefile
Normal file
18
devel/py-daemon-runner/Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Created by: Dan Langille <dvl@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= daemon-runner
|
||||
PORTVERSION= 0.0.15
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= dvl@FreeBSD.org
|
||||
COMMENT= Simple command line runner on top of python-daemon
|
||||
|
||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}daemon>0:devel/py-daemon
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/py-daemon-runner/distinfo
Normal file
3
devel/py-daemon-runner/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1511988782
|
||||
SHA256 (daemon-runner-0.0.15.tar.gz) = 6b74e6da04598fc8f13c26452f3d5827625c6befe8110e4c07e30307b143857a
|
||||
SIZE (daemon-runner-0.0.15.tar.gz) = 3044
|
23
devel/py-daemon-runner/pkg-descr
Normal file
23
devel/py-daemon-runner/pkg-descr
Normal file
|
@ -0,0 +1,23 @@
|
|||
Simple command line runner on top of python-daemon, a library which implements
|
||||
the well-behaved daemon specification of PEP 3143, ???Standard daemon process
|
||||
library.
|
||||
|
||||
A well-behaved Unix daemon process is tricky to get right, but the required
|
||||
steps are much the same for every daemon program. A DaemonContext instance
|
||||
holds the behaviour and configured process environment for the program; use
|
||||
the instance as a context manager to enter a daemon state.
|
||||
|
||||
Simple example of usage:
|
||||
|
||||
import daemon
|
||||
|
||||
from spam import do_main_program
|
||||
|
||||
with daemon.DaemonContext():
|
||||
do_main_program()
|
||||
|
||||
Customisation of the steps to become a daemon is available by setting options
|
||||
on the DaemonContext instance; see the documentation for that class for each
|
||||
option.
|
||||
|
||||
WWW: https://pypi.python.org/pypi/daemon-runner
|
Loading…
Add table
Reference in a new issue