Disable CACULE RDB support when _cacule_rdb equals to 'false' (#485)

* Disable CACULE RDB support when _cacule_rdb equals to 'false'

* Make CACULE RDB disabled by default unless overriden with _cacule_rdb='true'

* Enable CACULE RDB when _cacule_rdb set to 'true'

* Fix missing _cacule_rdb_interval setting
This commit is contained in:
Slaviusz
2022-03-31 18:20:28 +02:00
committed by GitHub
parent f671c27f6b
commit 28b014dd18

View File

@@ -803,7 +803,7 @@ _tkg_srcprep() {
_disable "SCHED_BMQ"
elif [ "${_cpusched}" = "cacule" ]; then
_enable "SCHED_AUTOGROUP" "CACULE_SCHED"
_disable "BSD_PROCESS_ACCT" "TASK_XACCT" "CGROUP_CPUACCT" "CGROUP_DEBUG"
_disable "BSD_PROCESS_ACCT" "TASK_XACCT" "CGROUP_CPUACCT" "CGROUP_DEBUG" "CACULE_RDB"
if [ "$_cacule_rdb" = "true" ]; then
_enable "CACULE_RDB"
scripts/config --set-val "RDB_INTERVAL" "$_cacule_rdb_interval"