Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/lm_sensors/files: fancontrol-init.d-2 sensord-4-init.d
Date: Fri, 28 Dec 2012 00:00:16
Message-Id: 20121228000003.4EC962171D@flycatcher.gentoo.org
1 flameeyes 12/12/28 00:00:03
2
3 Added: fancontrol-init.d-2 sensord-4-init.d
4 Log:
5 Update init scripts to use the new short form.
6
7 (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
8
9 Revision Changes Path
10 1.1 sys-apps/lm_sensors/files/fancontrol-init.d-2
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lm_sensors/files/fancontrol-init.d-2?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lm_sensors/files/fancontrol-init.d-2?rev=1.1&content-type=text/plain
14
15 Index: fancontrol-init.d-2
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2012 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/fancontrol-init.d-2,v 1.1 2012/12/28 00:00:03 flameeyes Exp $
21
22 CONFIG=/etc/fancontrol
23
24 depend() {
25 need localmount
26 use lm_sensors
27 }
28
29 command=/usr/sbin/fancontrol
30 command_arguments="${CONFIG}"
31 start_stop_daemon_args="--background"
32 pidfile=/var/run/fancontrol.pid
33
34 start_pre() {
35 if [ ! -f ${CONFIG} ]; then
36 eerror "Configuration file ${CONFIG} not found"
37 return 1
38 fi
39 }
40
41
42
43 1.1 sys-apps/lm_sensors/files/sensord-4-init.d
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lm_sensors/files/sensord-4-init.d?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lm_sensors/files/sensord-4-init.d?rev=1.1&content-type=text/plain
47
48 Index: sensord-4-init.d
49 ===================================================================
50 #!/sbin/runscript
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/sensord-4-init.d,v 1.1 2012/12/28 00:00:03 flameeyes Exp $
54
55 CONFIG=/etc/sensors3.conf
56
57 depend() {
58 need localmount
59 use logger lm_sensors
60 }
61
62 command=/usr/sbin/sensorsd
63 command_arguments="--config-file ${CONFIG} ${SENSORSD_OPTIONS}"
64 pidfile=/var/run/sensorsd.pid
65
66 start_pre() {
67 if [ ! -f ${CONFIG} ]; then
68 eerror "Configuration file ${CONFIG} not found"
69 return 1
70 fi
71 }