Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2017 21:00:24 +0000 (UTC)
From:      Dan Langille <dvl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455148 - in head/devel: . py-daemon-runner
Message-ID:  <201711292100.vATL0OFL083501@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dvl
Date: Wed Nov 29 21:00:24 2017
New Revision: 455148
URL: https://svnweb.freebsd.org/changeset/ports/455148

Log:
  Simple command line runner on top of devel/py-daemon

Added:
  head/devel/py-daemon-runner/
  head/devel/py-daemon-runner/Makefile   (contents, props changed)
  head/devel/py-daemon-runner/distinfo   (contents, props changed)
  head/devel/py-daemon-runner/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Nov 29 20:52:49 2017	(r455147)
+++ head/devel/Makefile	Wed Nov 29 21:00:24 2017	(r455148)
@@ -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

Added: head/devel/py-daemon-runner/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-daemon-runner/Makefile	Wed Nov 29 21:00:24 2017	(r455148)
@@ -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>

Added: head/devel/py-daemon-runner/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-daemon-runner/distinfo	Wed Nov 29 21:00:24 2017	(r455148)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1511988782
+SHA256 (daemon-runner-0.0.15.tar.gz) = 6b74e6da04598fc8f13c26452f3d5827625c6befe8110e4c07e30307b143857a
+SIZE (daemon-runner-0.0.15.tar.gz) = 3044

Added: head/devel/py-daemon-runner/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-daemon-runner/pkg-descr	Wed Nov 29 21:00:24 2017	(r455148)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711292100.vATL0OFL083501>