public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-apps/lm_sensors/files: sensord-3-init.d
@ 2009-11-29 13:13 Thilo Bangert (bangert)
  0 siblings, 0 replies; only message in thread
From: Thilo Bangert (bangert) @ 2009-11-29 13:13 UTC (permalink / raw
  To: gentoo-commits

bangert     09/11/29 13:13:08

  Added:                sensord-3-init.d
  Log:
  fix sensord USE flag - bug #291326
  (Portage version: 2.2_rc53/cvs/Linux i686)

Revision  Changes    Path
1.1                  sys-apps/lm_sensors/files/sensord-3-init.d

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/lm_sensors/files/sensord-3-init.d?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/lm_sensors/files/sensord-3-init.d?rev=1.1&content-type=text/plain

Index: sensord-3-init.d
===================================================================
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/sensord-3-init.d,v 1.1 2009/11/29 13:13:08 bangert Exp $

CONFIG=/etc/sensors3.conf

depend() {
	need logger
	use lm_sensors
}

checkconfig() {
	if [ ! -f ${CONFIG} ]; then
		eerror "Configuration file ${CONFIG} not found"
		return 1
	fi
}

start() {
	checkconfig || return 1

	ebegin "Starting sensord"
	start-stop-daemon --start --exec /usr/sbin/sensord \
		-- --config-file ${CONFIG} ${SENSORD_OPTIONS}
	eend ${?}
}

stop() {
	ebegin "Stopping sensord"
	start-stop-daemon --stop --pidfile /var/run/sensord.pid
	eend ${?}
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-29 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-29 13:13 [gentoo-commits] gentoo-x86 commit in sys-apps/lm_sensors/files: sensord-3-init.d Thilo Bangert (bangert)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox