diff options
author | freaj <freaj@riseup.net> | 2015-03-30 11:08:25 +0200 |
---|---|---|
committer | freaj <freaj@riseup.net> | 2015-03-30 11:08:25 +0200 |
commit | cec37e643f4889b4b8652bdfce886b1e5e81f2bd (patch) | |
tree | c992d8325923324f5d318f57b4c05dd5fe494988 /pcr/openrc-misc/sensord-4-init.d | |
parent | 7385c6143c1b587bca68deade6e5989d11879767 (diff) | |
download | abslibre-cec37e643f4889b4b8652bdfce886b1e5e81f2bd.tar.gz abslibre-cec37e643f4889b4b8652bdfce886b1e5e81f2bd.tar.bz2 abslibre-cec37e643f4889b4b8652bdfce886b1e5e81f2bd.zip |
openrc-misc: add new package to [pcr]
Diffstat (limited to 'pcr/openrc-misc/sensord-4-init.d')
-rw-r--r-- | pcr/openrc-misc/sensord-4-init.d | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/openrc-misc/sensord-4-init.d b/pcr/openrc-misc/sensord-4-init.d new file mode 100644 index 000000000..293341c69 --- /dev/null +++ b/pcr/openrc-misc/sensord-4-init.d @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/sensord-4-init.d,v 1.3 2013/09/17 20:05:50 pacho Exp $ + +CONFIG=/etc/sensors3.conf + +depend() { + need localmount + use logger lm_sensors +} + +pidfile=/run/sensord.pid +command=/usr/sbin/sensord +command_args="--config-file ${CONFIG} ${SENSORD_OPTIONS} --pid-file ${pidfile}" + +start_pre() { + if [ ! -f ${CONFIG} ]; then + eerror "Configuration file ${CONFIG} not found" + return 1 + fi +} |