Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/openhpi/files: openhpi-confd openhpi-initd
Date: Sat, 01 Nov 2008 08:19:08
Message-Id: E1KwBhJ-0004Rv-RQ@stork.gentoo.org
1 robbat2 08/11/01 08:19:05
2
3 Added: openhpi-confd openhpi-initd
4 Log:
5 Version bump, per bug #199024. Thanks to Tais M. Hansen <tais.hansen@×××.dk> for scripts.
6 (Portage version: 2.2_rc12/cvs/Linux 2.6.26-hardened-r4 x86_64)
7
8 Revision Changes Path
9 1.1 sys-libs/openhpi/files/openhpi-confd
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/openhpi/files/openhpi-confd?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/openhpi/files/openhpi-confd?rev=1.1&content-type=text/plain
13
14 Index: openhpi-confd
15 ===================================================================
16 # /etc/conf.d/openhpid: config file for /etc/init.d/openhpid
17
18 # Listening port. Default is 4743.
19 #OPENHPID_PORT="4743"
20
21 # Socket read timeout in seconds. Default is 1800 seconds.
22 #OPENHPID_READTIMEOUT="1800"
23
24 # Maximum number of connection threads. Default is unlimited.
25 #OPENHPID_THREADS=""
26
27
28
29 1.1 sys-libs/openhpi/files/openhpi-initd
30
31 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/openhpi/files/openhpi-initd?rev=1.1&view=markup
32 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/openhpi/files/openhpi-initd?rev=1.1&content-type=text/plain
33
34 Index: openhpi-initd
35 ===================================================================
36 #!/sbin/runscript
37 # Copyright 1999-2007 Gentoo Foundation
38 # Distributed under the terms of the GNU General Public License v2
39
40 start() {
41 local extraopts
42 [ -n "${OPENHPID_PORT}" ] && extraopts += " -p ${OPENHPID_PORT}"
43 [ -n "${OPENHPID_READTIMEOUT}" ] && extraopts += " -s ${OPENHPID_READTIMEOUT}"
44 [ -n "${OPENHPID_THREADS}" ] && extraopts += " -t ${OPENHPID_THREADS}"
45
46 ebegin "Starting openhpid"
47 start-stop-daemon --start --exec /usr/sbin/openhpid --pidfile /var/run/openhpid.pid \
48 -- -c /etc/openhpi/openhpi.conf -f /var/run/openhpid.pid ${extraopts}
49 eend $?
50 }
51
52 stop() {
53 ebegin "Stopping openhpid"
54 start-stop-daemon --stop --exec /usr/sbin/openhpid --pidfile /var/run/openhpid.pid
55 eend $?
56 }