Summary: Server performance tuning service Name: ktune Version: 0.2 Release: 2 License: GPLv2 Group: System Environment/Base #URL: not available atm Source0: ktune.init Source1: ktune.sysconfig Source2: sysctl.ktune BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Requires(post): chkconfig Requires(preun): chkconfig %description ktune provides settings for server performance tuning. Please have a look at %{_sysconfdir}/sysconfig/ktune and %{_sysconfdir}/sysctl.ktune for tuning parameters. %prep %build %install rm -rf $RPM_BUILD_ROOT install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir} install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir} install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ktune install -m 755 -d $RPM_BUILD_ROOT%{_initrddir} install -m 755 %{SOURCE0} $RPM_BUILD_ROOT%{_initrddir}/ktune %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add ktune %preun if [ "$1" -eq 0 ]; then /sbin/service ktune stop >/dev/null 2>&1 /sbin/chkconfig --del ktune fi %postun if [ "$1" -eq 1 ]; then /sbin/service ktune condrestart >/dev/null 2>&1 fi %files %defattr(-,root,root,-) %attr(0755,root,root) %{_initrddir}/ktune %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/ktune %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysctl.ktune %changelog * Fri Aug 29 2008 Thomas Woerner 0.2-2 - spec file chenges according to rpmlint output * Fri Aug 29 2008 Thomas Woerner 0.2-1 - new variable ELEVATOR_TUNE_DEVS in /etc/sysconfig/ktune to define the tunable devices, also tune cciss devices - be more verbose for elevator settings - added post and preun scripts * Fri Aug 15 2008 Thomas Woerner 0.1-1 - Initial build.