Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/python/files: pydoc.conf pydoc.init
Date: Sat, 01 Mar 2008 13:38:55
Message-Id: E1JVRvR-0000Vy-30@stork.gentoo.org
1 dev-zero 08/03/01 13:38:53
2
3 Added: pydoc.conf pydoc.init
4 Log:
5 Added init.d/conf.d scripts for the integrated pydoc webserver (bug #59903, thanks to compnerd).
6 (Portage version: 2.1.4.4, RepoMan options: --force)
7
8 Revision Changes Path
9 1.1 dev-lang/python/files/pydoc.conf
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/files/pydoc.conf?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/files/pydoc.conf?rev=1.1&content-type=text/plain
13
14 Index: pydoc.conf
15 ===================================================================
16 # /etc/init.d/pydoc.conf
17 # $Header:
18
19 # This file contains the configuration information for pydoc's internal
20 # webserver. The variables should be rather self explanatory :-)
21
22 # Default port for Python's pydoc server
23 PYDOC_PORT=7464
24
25
26
27 1.1 dev-lang/python/files/pydoc.init
28
29 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/files/pydoc.init?rev=1.1&view=markup
30 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/files/pydoc.init?rev=1.1&content-type=text/plain
31
32 Index: pydoc.init
33 ===================================================================
34 #!/sbin/runscript
35 # Copyright 1999-2008 Gentoo Technologies, Inc.
36 # Distributed under the terms of the GNU General Public Licence v2
37 # $Header:
38
39 depend() {
40 need net
41 }
42
43 start() {
44 if [ -z $PYDOC_PORT ] ; then
45 eerror "Port not set"
46 return 1
47 fi
48 ebegin "Starting pydoc server on port $PYDOC_PORT"
49 start-stop-daemon --start --background --make-pidfile \
50 --pidfile /var/run/pydoc.pid \
51 --startas /usr/bin/pydoc -- -p $PYDOC_PORT
52 eend $?
53 }
54
55 stop() {
56 ebegin "Stopping pydoc server"
57 start-stop-daemon --stop --quiet --pidfile /var/run/pydoc.pid
58 eend $?
59 }
60
61
62
63 --
64 gentoo-commits@l.g.o mailing list