Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dialup/sercd/files: sercd.xinetd sercd.initd sercd.confd
Date: Sun, 22 Mar 2009 12:45:00
Message-Id: E1LlN2r-0005Xo-5n@stork.gentoo.org
1 mrness 09/03/22 12:44:53
2
3 Added: sercd.xinetd sercd.initd sercd.confd
4 Log:
5 Initial import from bug 263176.
6 (Portage version: 2.1.6.7/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-dialup/sercd/files/sercd.xinetd
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/sercd/files/sercd.xinetd?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/sercd/files/sercd.xinetd?rev=1.1&content-type=text/plain
13
14 Index: sercd.xinetd
15 ===================================================================
16 # default: on
17 # description: RFC 2217 compliant Telnet serial port redirector
18 service sredir
19 {
20 type = UNLISTED
21 flags = REUSE
22 socket_type = stream
23 protocol = tcp
24 wait = no
25 user = uucp
26 server = /usr/sbin/sercd
27 server_args = 5 /dev/modem /var/lock/LCK..modem 100
28 port = 7000
29 disable = yes
30 }
31
32
33
34 1.1 net-dialup/sercd/files/sercd.initd
35
36 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/sercd/files/sercd.initd?rev=1.1&view=markup
37 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/sercd/files/sercd.initd?rev=1.1&content-type=text/plain
38
39 Index: sercd.initd
40 ===================================================================
41 #!/sbin/runscript
42 # Copyright 1999-2004 Gentoo Foundation
43 # Distributed under the terms of the GNU General Public License v2
44 # $Header: /var/cvsroot/gentoo-x86/net-dialup/sercd/files/sercd.initd,v 1.1 2009/03/22 12:44:53 mrness Exp $
45
46 PIDFILE=/var/run/${SVCNAME}.pid
47
48 depend() {
49 need net
50 }
51
52 start() {
53 ebegin "Starting ${SVCNAME}"
54 start-stop-daemon --start --quiet --background --make-pidfile \
55 --exec /usr/sbin/sercd --chuid ${SERCD_USER} --pidfile "${PIDFILE}" \
56 -- ${SERCD_OPTS} -p ${SERCD_PORT} -l ${SERCD_ADDR} \
57 ${SERCD_LOGLEVEL} "${SERCD_DEVFILE}" "${SERCD_LOCKFILE}" ${SERCD_POLLINTERV}
58 eend $?
59 }
60
61 stop() {
62 ebegin "Stopping ${SVCNAME}"
63 start-stop-daemon --stop --quiet --name sercd --pidfile "${PIDFILE}"
64 eend $?
65 }
66
67
68
69 1.1 net-dialup/sercd/files/sercd.confd
70
71 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/sercd/files/sercd.confd?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/sercd/files/sercd.confd?rev=1.1&content-type=text/plain
73
74 Index: sercd.confd
75 ===================================================================
76 # sercd service configuration file
77
78 # Run daemon as this user:group
79 SERCD_USER=uucp:uucp
80
81 # Serial port
82 SERCD_DEVFILE=/dev/modem
83
84 # Lock file
85 SERCD_LOCKFILE=/var/lock/LCK..modem
86
87 # Address on which this daemon listens on
88 SERCD_ADDR=0.0.0.0
89 SERCD_PORT=7000
90
91 # Log level; available values are from 0 (LOG_EMERG) to 7 (LOG_DEBUG).
92 SERCD_LOGLEVEL=5
93
94 # Uncomment this if you want compatibility with Cisco IOS
95 # SERCD_OPTS="-i"
96
97 # Poll interval is in milliseconds. 0 means no polling
98 SERCD_POLLINTERV=100