Skip to content

Commit

Permalink
Merge pull request #928 from sdodson/fix-tuned-profile
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Feb 5, 2015
2 parents c49f26e + b773ccd commit a316d5f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions openshift.spec
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,15 @@ install -m 0644 -t %{buildroot}/usr/lib/tuned/openshift-node tuned/openshift-nod
%{_prefix}/lib/tuned/openshift-node

%post -n tuned-profiles-openshift-node
/usr/sbin/tuned-adm profile openshift-node

%postun -n tuned-profiles-openshift-node
/usr/sbin/tuned-adm profile default
/usr/sbin/tuned-adm profile openshift-node > /dev/null 2>&1

%preun -n tuned-profiles-openshift-node
# reset the tuned profile to the recommended profile
# $1 = 0 when we're being removed > 0 during upgrades
if [ "$1" = 0 ]; then
recommended=`/usr/sbin/tuned-adm recommend`
/usr/sbin/tuned-adm profile $recommended > /dev/null 2>&1
fi


%changelog
Expand Down

0 comments on commit a316d5f

Please sign in to comment.