rc_cgroup.sh: do not add newline when writing group2 values
Fixes: #407
This commit is contained in:
parent
de77674663
commit
08d518b7fe
@ -200,7 +200,7 @@ cgroup2_set_limits()
|
|||||||
[ -z "${value}" ] && continue
|
[ -z "${value}" ] && continue
|
||||||
[ ! -f "${rc_cgroup_path}/${key}" ] && continue
|
[ ! -f "${rc_cgroup_path}/${key}" ] && continue
|
||||||
veinfo "${RC_SVCNAME}: cgroups: setting ${key} to ${value}"
|
veinfo "${RC_SVCNAME}: cgroups: setting ${key} to ${value}"
|
||||||
printf "%s\n" "${value}" > "${rc_cgroup_path}/${key}"
|
printf "%s" "${value}" > "${rc_cgroup_path}/${key}"
|
||||||
done
|
done
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user