From: | "Markos Chandras (hwoarang)" <hwoarang@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/arpon/files: arpon.initd arpon.confd |
Date: | Thu, 22 Mar 2012 21:03:59 |
Message-Id: | 20120322210344.5521A2004B@flycatcher.gentoo.org |
1 | hwoarang 12/03/22 21:03:44 |
2 | |
3 | Added: arpon.initd arpon.confd |
4 | Log: |
5 | revbump to add init script. Thanks to Tobias Wallura <Tobias.Wallura@×××××.com>. Bug #387193 |
6 | |
7 | (Portage version: 2.2.0_alpha90/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-analyzer/arpon/files/arpon.initd |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/arpon/files/arpon.initd?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/arpon/files/arpon.initd?rev=1.1&content-type=text/plain |
14 | |
15 | Index: arpon.initd |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | |
20 | depend() { |
21 | need net |
22 | } |
23 | |
24 | start() { |
25 | ebegin "Starting arpon" |
26 | start-stop-daemon --start --background --make-pidfile --pidfile "/var/run/arpon.pid" \ |
27 | --exec /usr/sbin/arpon -- ${ARPON_OPTS} >/dev/null 2>&1 |
28 | eend $? |
29 | } |
30 | |
31 | stop() { |
32 | ebegin "Stopping arpon" |
33 | start-stop-daemon --stop --pidfile "/var/run/arpon.pid" |
34 | eend $? |
35 | } |
36 | |
37 | |
38 | |
39 | 1.1 net-analyzer/arpon/files/arpon.confd |
40 | |
41 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/arpon/files/arpon.confd?rev=1.1&view=markup |
42 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/arpon/files/arpon.confd?rev=1.1&content-type=text/plain |
43 | |
44 | Index: arpon.confd |
45 | =================================================================== |
46 | METHOD="--darpi" |
47 | IFACE="eth0" |
48 | LOGFILE="/var/log/arpon.log" |
49 | |
50 | ARPON_OPTS="${METHOD} --iface ${IFACE} --log-file ${LOGFILE} --log" |