From owner-svn-ports-head@freebsd.org Wed Nov 29 21:00:25 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0263DBBAA9; Wed, 29 Nov 2017 21:00:25 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B7E0E64698; Wed, 29 Nov 2017 21:00:25 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vATL0OXr083505; Wed, 29 Nov 2017 21:00:24 GMT (envelope-from dvl@FreeBSD.org) Received: (from dvl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vATL0OFL083501; Wed, 29 Nov 2017 21:00:24 GMT (envelope-from dvl@FreeBSD.org) Message-Id: <201711292100.vATL0OFL083501@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dvl set sender to dvl@FreeBSD.org using -f From: Dan Langille Date: Wed, 29 Nov 2017 21:00:24 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: dvl X-SVN-Commit-Paths: in head/devel: . py-daemon-runner X-SVN-Commit-Revision: 455148 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 21:00:26 -0000 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 +# $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 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