[hdapsd] drop sysconfig file
Tomasz Torcz
ttorcz at fedoraproject.org
Sun Jun 3 17:46:56 UTC 2012
commit b6359c37fdd60546ae3b077b112205717ebcbbb1
Author: Tomasz Torcz <tomek at pipebreaker.pl>
Date: Sun Jun 3 19:46:36 2012 +0200
drop sysconfig file
hdapsd.spec | 7 +++----
hdapsd.sysconfig | 2 --
hdapsd at .service | 4 ++--
3 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/hdapsd.spec b/hdapsd.spec
index 228a7d0..49f05c2 100644
--- a/hdapsd.spec
+++ b/hdapsd.spec
@@ -7,7 +7,6 @@ Group: Applications/System
License: GPLv2+
URL: http://hdaps.sourceforge.net/
Source0: http://downloads.sourceforge.net/hdaps/hdapsd-%{version}.tar.gz
-Source2: hdapsd.sysconfig
Source3: 99-hdapsd.rules.systemd
Source4: hdapsd at .service
Requires: systemd-units
@@ -32,10 +31,8 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
-mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
mkdir -p %{buildroot}%{_unitdir}
-cp -p %SOURCE2 %{buildroot}%{_sysconfdir}/sysconfig/hdapsd
cp -p %SOURCE3 %{buildroot}%{_sysconfdir}/udev/rules.d/99-hdapsd.rules
cp -p %SOURCE4 %{buildroot}%{_unitdir}
# remove docs installed by "make install", will be installed in proper dir by %doc
@@ -46,7 +43,6 @@ rm -rf %{buildroot}%{_defaultdocdir}/%{name}
%defattr(-,root,root,-)
%{_sbindir}/*
%config(noreplace) %{_sysconfdir}/udev/rules.d/99-hdapsd.rules
-%config(noreplace) %{_sysconfdir}/sysconfig/hdapsd
%{_unitdir}/hdapsd at .service
%{_mandir}/man8/hdapsd.8.gz
%doc AUTHORS
@@ -56,6 +52,9 @@ rm -rf %{buildroot}%{_defaultdocdir}/%{name}
%changelog
+# dropped sysconfig file
+# TODO: proper udev rule location
+
* Fri Feb 03 2012 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-10
- spec cleanup:
- remove BuildRoot define and it's removal from clean
diff --git a/hdapsd at .service b/hdapsd at .service
index b285d58..a6c21e0 100644
--- a/hdapsd at .service
+++ b/hdapsd at .service
@@ -2,7 +2,7 @@
Description=%I shock protection daemon
[Service]
-EnvironmentFile=/etc/sysconfig/hdapsd
+# default sensivity is 15; bump it a little and enable adaptive tuning
+ExecStart=/usr/sbin/hdapsd -d %I -s 22 -a
SyslogIdentifier=%p(%I)
Nice=-5
-ExecStart=/usr/sbin/hdapsd -d %I $HDAPSD_OPTIONS
More information about the scm-commits
mailing list