1 |
commit: 89a559926541e1167a03136d0ee0d24235a8e0c0 |
2 |
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 28 09:18:18 2019 +0000 |
4 |
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 28 09:18:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=89a55992 |
7 |
|
8 |
dev-lang/python: sync files/pydoc.init |
9 |
|
10 |
sync, fix double content from old semi auto sync |
11 |
|
12 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
13 |
Signed-off-by: Michael Haubenwallner <haubi <AT> gentoo.org> |
14 |
|
15 |
dev-lang/python/files/pydoc.init | 31 ++----------------------------- |
16 |
1 file changed, 2 insertions(+), 29 deletions(-) |
17 |
|
18 |
diff --git a/dev-lang/python/files/pydoc.init b/dev-lang/python/files/pydoc.init |
19 |
index ad4275bf44..148ce0b4b1 100755 |
20 |
--- a/dev-lang/python/files/pydoc.init |
21 |
+++ b/dev-lang/python/files/pydoc.init |
22 |
@@ -1,7 +1,6 @@ |
23 |
-#!/sbin/runscript |
24 |
-# Copyright 1999-2014 Gentoo Technologies, Inc. |
25 |
+#!/sbin/openrc-run |
26 |
+# Copyright 1999-2019 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public Licence v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/files/pydoc.init,v 1.5 2014/10/12 12:37:07 djc Exp $ |
29 |
|
30 |
start() { |
31 |
local pydoc_port="${@PYDOC_PORT_VARIABLE@-${PYDOC_PORT}}" |
32 |
@@ -23,29 +22,3 @@ stop() { |
33 |
start-stop-daemon --stop --quiet --pidfile /var/run/@PYDOC@.pid |
34 |
eend $? |
35 |
} |
36 |
-#!/sbin/runscript |
37 |
-# Copyright 1999-2008 Gentoo Technologies, Inc. |
38 |
-# Distributed under the terms of the GNU General Public Licence v2 |
39 |
-# $Header: |
40 |
- |
41 |
-depend() { |
42 |
- need net |
43 |
-} |
44 |
- |
45 |
-start() { |
46 |
- if [ -z $PYDOC_PORT ] ; then |
47 |
- eerror "Port not set" |
48 |
- return 1 |
49 |
- fi |
50 |
- ebegin "Starting pydoc server on port $PYDOC_PORT" |
51 |
- start-stop-daemon --start --background --make-pidfile \ |
52 |
- --pidfile /var/run/pydoc.pid \ |
53 |
- --startas /usr/bin/pydoc -- -p $PYDOC_PORT |
54 |
- eend $? |
55 |
-} |
56 |
- |
57 |
-stop() { |
58 |
- ebegin "Stopping pydoc server" |
59 |
- start-stop-daemon --stop --quiet --pidfile /var/run/pydoc.pid |
60 |
- eend $? |
61 |
-} |