commit: 89a559926541e1167a03136d0ee0d24235a8e0c0
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 28 09:18:18 2019 +0000
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Thu Nov 28 09:18:40 2019 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=89a55992
dev-lang/python: sync files/pydoc.init
sync, fix double content from old semi auto sync
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Michael Haubenwallner <haubi <AT> gentoo.org>
dev-lang/python/files/pydoc.init | 31 ++-----------------------------
1 file changed, 2 insertions(+), 29 deletions(-)
diff --git a/dev-lang/python/files/pydoc.init b/dev-lang/python/files/pydoc.init
index ad4275bf44..148ce0b4b1 100755
--- a/dev-lang/python/files/pydoc.init
+++ b/dev-lang/python/files/pydoc.init
@@ -1,7 +1,6 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Technologies, Inc.
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public Licence v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/files/pydoc.init,v 1.5
2014/10/12 12:37:07 djc Exp $
start() {
local pydoc_port="${@PYDOC_PORT_VARIABLE@-${PYDOC_PORT}}"
@@ -23,29 +22,3 @@ stop() {
start-stop-daemon --stop --quiet --pidfile /var/run/@[email protected]
eend $?
}
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public Licence v2
-# $Header:
-
-depend() {
- need net
-}
-
-start() {
- if [ -z $PYDOC_PORT ] ; then
- eerror "Port not set"
- return 1
- fi
- ebegin "Starting pydoc server on port $PYDOC_PORT"
- start-stop-daemon --start --background --make-pidfile \
- --pidfile /var/run/pydoc.pid \
- --startas /usr/bin/pydoc -- -p $PYDOC_PORT
- eend $?
-}
-
-stop() {
- ebegin "Stopping pydoc server"
- start-stop-daemon --stop --quiet --pidfile /var/run/pydoc.pid
- eend $?
-}