beakerlib: fix systemd rate limiting for variables-support-in-profiles
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
dc8808cb39
commit
e0deb1bdaf
1 changed files with 5 additions and 3 deletions
|
|
@ -22,12 +22,14 @@ PACKAGE="tuned"
|
|||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlFileBackup --clean /etc/systemd/system.conf.d
|
||||
rlRun "mkdir -p /etc/systemd/system.conf.d"
|
||||
rlRun "echo -e '[Manager]\nDefaultStartLimitInterval=0' > /etc/systemd/system.conf.d/tuned.conf" 0 "Disable systemd rate limiting"
|
||||
rlRun "systemctl daemon-reload"
|
||||
rlImport "tuned/basic"
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
sleep 2
|
||||
rlServiceStart "tuned"
|
||||
sleep 2
|
||||
tunedProfileBackup
|
||||
rlFileBackup "/usr/lib/tuned/balanced/tuned.conf"
|
||||
|
||||
|
|
@ -56,8 +58,8 @@ vm.swappiness = \${SWAPPINESS2}
|
|||
rlRun "sysctl vm.swappiness=$OLD_SWAPPINESS"
|
||||
rlFileRestore
|
||||
tunedProfileRestore
|
||||
sleep 2
|
||||
rlServiceRestore "tuned"
|
||||
rlRun "systemctl daemon-reload"
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
|
|
|
|||
Loading…
Reference in a new issue