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 app-misc/g15stats/files: g15stats-1.9.7.initd g15stats-1.9.7.confd
Date: Wed, 03 Aug 2011 08:11:10
Message-Id: 20110803081100.4E2CF2004C@flycatcher.gentoo.org
1 robbat2 11/08/03 08:11:00
2
3 Added: g15stats-1.9.7.initd g15stats-1.9.7.confd
4 Log:
5 Bug #349482: version bump.
6
7 (Portage version: 2.2.0_alpha45/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-misc/g15stats/files/g15stats-1.9.7.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/g15stats/files/g15stats-1.9.7.initd?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/g15stats/files/g15stats-1.9.7.initd?rev=1.1&content-type=text/plain
14
15 Index: g15stats-1.9.7.initd
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2011 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/app-misc/g15stats/files/g15stats-1.9.7.initd,v 1.1 2011/08/03 08:11:00 robbat2 Exp $
21
22 PIDFILE=/var/run/${SVCNAME}.pid
23
24 depend() {
25 need g15daemon
26 after xdm
27 }
28
29 start() {
30 ebegin "Starting ${SVCNAME}"
31 start-stop-daemon --start --background --make-pidfile --pidfile ${PIDFILE} --exec \
32 /usr/bin/g15stats -- "${EXTRA_OPTS}"
33 eend $?
34 }
35
36 stop() {
37 ebegin "Stoping ${SVCNAME}"
38 start-stop-daemon --stop --pidfile ${PIDFILE} --name g15stats
39 eend $?
40 }
41
42
43
44 1.1 app-misc/g15stats/files/g15stats-1.9.7.confd
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/g15stats/files/g15stats-1.9.7.confd?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/g15stats/files/g15stats-1.9.7.confd?rev=1.1&content-type=text/plain
48
49 Index: g15stats-1.9.7.confd
50 ===================================================================
51 # /etc/conf.d/g15stats: Configuration for the G15 stats
52
53 #Gather statistics from named interface (ie eth0)
54 #Network Screen displays Total bytes In/Out, history graph, Peak speed.
55 IFACE="eth0"
56
57 # Please see g15stats --help for meanings
58 #TEMP_INPUT=1
59 #GLOBAL_TEMP_INPUT=1
60 #FAN_INPUT=1
61
62 # please see g15stats --help for all options
63 # As of 1.9.7, the options where:
64 # --unicore
65 # --net-scale-absolute
66 # --info-rotate
67 # --variable-cpu
68 # --refresh
69 # --disable-freq
70 EXTRA_OPTS="${IFACE:+--interface} ${IFACE} ${TEMP_INPUT:+--temperature} ${TEMP_INPUT} ${GLOBAL_TEMP_INPUT:+--global-temp} ${GLOBAL_TEMP_INPUT} ${FAN_INPUT:+--fan} ${FAN_INPUT}"