- lm_sensors-3.4.0-sensord-service-extra-args.patch: Allow passing

arbitrary extra arguments to sensord.

OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=88
This commit is contained in:
Jean Delvare 2016-01-31 12:31:27 +00:00 committed by Git OBS Bridge
parent 8bd2e600b1
commit 8049f81e16
4 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,16 @@
Allow passing arbitrary extra arguments to sensord.
---
prog/init/sensord.service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/prog/init/sensord.service
+++ b/prog/init/sensord.service
@@ -6,7 +6,7 @@ After=lm_sensors.service
EnvironmentFile=/etc/sysconfig/sensord
Type=forking
PIDFile=/var/run/sensord.pid
-ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon
+ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon $SENSORD_ARGS
[Install]
WantedBy=multi-user.target

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Jan 31 12:30:06 UTC 2016 - jdelvare@suse.com
- lm_sensors-3.4.0-sensord-service-extra-args.patch: Allow passing
arbitrary extra arguments to sensord.
-------------------------------------------------------------------
Thu Jul 2 10:55:58 CEST 2015 - jdelvare@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package sensors
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -37,6 +37,7 @@ Patch2: lm_sensors-3.0.0-sensord-separate.patch
Patch3: lm_sensors-3.0.0-sysconfig_metadata.patch
Patch4: lm_sensors-3.0.3-hint-at-kernel-extra-package.patch
Patch5: lm_sensors-3.4.0-sensors-detect-fix-systemd-path.patch
Patch6: lm_sensors-3.4.0-sensord-service-extra-args.patch
ExcludeArch: s390 s390x
%{?systemd_requires}
@ -99,6 +100,7 @@ sense to the user.
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%build
RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

View File

@ -17,3 +17,11 @@ INTERVAL="1m"
# for hours. 0 turns off logging.
#
LOG_INTERVAL="20m"
## Type: string
## Default: ""
#
# Pass specific sensord(8) options when the service is started via
# systemctl.
#
SENSORD_ARGS=""