From: | "Peter Volkov (pva)" <pva@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/udpxy/files: udpxy.confd udpxy.initd |
Date: | Thu, 22 Mar 2012 11:12:59 |
Message-Id: | 20120322111244.037AF2004B@flycatcher.gentoo.org |
1 | pva 12/03/22 11:12:43 |
2 | |
3 | Added: udpxy.confd udpxy.initd |
4 | Log: |
5 | Added init scripts by Drew, bug #257807. |
6 | |
7 | (Portage version: 2.1.10.44/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-misc/udpxy/files/udpxy.confd |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/udpxy/files/udpxy.confd?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/udpxy/files/udpxy.confd?rev=1.1&content-type=text/plain |
14 | |
15 | Index: udpxy.confd |
16 | =================================================================== |
17 | |
18 | #udpxy 1.0_Chipmunk (build 8) standard |
19 | #usage: udpxy [-vTS] [-a listenaddr] -p port [-m mcast_ifc_addr] [-c clients] [-l logfile] [-B sizeK] [-n nice_incr] |
20 | # -v : enable verbose output [default = disabled] |
21 | # -S : enable client statistics [default = disabled] |
22 | # -T : do NOT run as a daemon [default = daemon if root] |
23 | # -a : (IPv4) address/interface to listen on [default = 0.0.0.0] |
24 | # -p : port to listen on |
25 | # -m : (IPv4) address/interface of (multicast) source [default = 0.0.0.0] |
26 | # -c : max clients to serve [default = 3, max = 16] |
27 | # -l : log output to file [default = stderr] |
28 | # -B : cache size (65536, 32Kb, 1Mb) for inbound (multicast) data [default = 65536 bytes] |
29 | # -R : maximum messages to cache in buffer (-1 = all) [default = -1] |
30 | # -H : maximum time (sec) to hold data in buffer (-1 = unlimited) [default = 4] |
31 | # -n : nice value increment [default = 0] |
32 | # -M : periodically renew multicast subscription (skip if 0 sec) [default = 0 sec] |
33 | #Examples: |
34 | # udpxy -p 4022 |
35 | # listen for HTTP requests on port 4022, all network interfaces |
36 | # udpxy -a lan0 -p 4022 -m lan1 |
37 | # listen for HTTP requests on interface lan0, port 4022; |
38 | # subscribe to multicast groups on interface lan1 |
39 | |
40 | UDPXYOPTS="-p 4022" |
41 | |
42 | |
43 | |
44 | 1.1 net-misc/udpxy/files/udpxy.initd |
45 | |
46 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/udpxy/files/udpxy.initd?rev=1.1&view=markup |
47 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/udpxy/files/udpxy.initd?rev=1.1&content-type=text/plain |
48 | |
49 | Index: udpxy.initd |
50 | =================================================================== |
51 | #!/sbin/runscript |
52 | # Copyright 1999-2012 Gentoo Foundation |
53 | # Distributed under the terms of the GNU General Public License v2 |
54 | # $Header: /var/cvsroot/gentoo-x86/net-misc/udpxy/files/udpxy.initd,v 1.1 2012/03/22 11:12:43 pva Exp $ |
55 | |
56 | depend() { |
57 | need net |
58 | } |
59 | |
60 | start() { |
61 | ebegin "Starting udpxy" |
62 | start-stop-daemon --start --exec /usr/bin/udpxy -- ${UDPXYOPTS} |
63 | eend $? |
64 | } |
65 | |
66 | stop() { |
67 | ebegin "Stopping udpxy" |
68 | start-stop-daemon --stop --exec /usr/bin/udpxy |
69 | eend $? |
70 | } |