From 025bdf5ab5d943eb92180de25753401954bb88b8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 12 Jan 2022 17:22:51 +0200 Subject: Added the current setup --- dev-lang/python/files/pydoc.conf | 6 + dev-lang/python/files/pydoc.init | 278 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 284 insertions(+) create mode 100644 dev-lang/python/files/pydoc.conf create mode 100644 dev-lang/python/files/pydoc.init (limited to 'dev-lang/python/files') diff --git a/dev-lang/python/files/pydoc.conf b/dev-lang/python/files/pydoc.conf new file mode 100644 index 0000000..3c6920c --- /dev/null +++ b/dev-lang/python/files/pydoc.conf @@ -0,0 +1,6 @@ +# /etc/init.d/pydoc.conf + +# This file contains the configuration for pydoc's internal webserver. + +# Default port for Python's pydoc server. +@PYDOC_PORT_VARIABLE@="7464" diff --git a/dev-lang/python/files/pydoc.init b/dev-lang/python/files/pydoc.init new file mode 100644 index 0000000..62326ec --- /dev/null +++ b/dev-lang/python/files/pydoc.init @@ -0,0 +1,278 @@ + + + +pydoc.init « files « python « dev-lang - repo/gentoo.git - Official Gentoo ebuild repository + + + + + + + + + + + + + +
+ + +
+ +
+
+
+
+ + + + +
+summaryrefslogtreecommitdiff
+ + + +
+
+
blob: f8e05636da4ed1970e196aa65ff063b761656ba9 (plain) + + +
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+
#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public Licence v2
+
+start() {
+	local pydoc_port="${@PYDOC_PORT_VARIABLE@-${PYDOC_PORT}}"
+
+	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 \
+			  --exec /usr/bin/@PYDOC@ -- -p "${pydoc_port}"
+	eend $?
+}
+
+stop() {
+	ebegin "Stopping pydoc server"
+	start-stop-daemon --stop --quiet --pidfile /var/run/@PYDOC@.pid
+	eend $?
+}
+
+
+
+
+
+
+
+ + + + + + + + + -- cgit v1.2.3