aboutsummaryrefslogtreecommitdiff
path: root/sh/rc-cgroup.sh
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2021-03-15 16:58:52 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2021-03-15 16:59:43 -0500
commit08d518b7fe8f4eade97a50d41859da841a04658a (patch)
treed02df1dfbd24a2bc34bb4630f1419a1b12fed6d6 /sh/rc-cgroup.sh
parentde776746634cde398bf2a171bfcb43ecc7069e33 (diff)
rc_cgroup.sh: do not add newline when writing group2 values
Fixes: #407
Diffstat (limited to 'sh/rc-cgroup.sh')
-rw-r--r--sh/rc-cgroup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/rc-cgroup.sh b/sh/rc-cgroup.sh
index 6ad746b4..fafc3b37 100644
--- a/sh/rc-cgroup.sh
+++ b/sh/rc-cgroup.sh
@@ -200,7 +200,7 @@ cgroup2_set_limits()
[ -z "${value}" ] && continue
[ ! -f "${rc_cgroup_path}/${key}" ] && continue
veinfo "${RC_SVCNAME}: cgroups: setting ${key} to ${value}"
- printf "%s\n" "${value}" > "${rc_cgroup_path}/${key}"
+ printf "%s" "${value}" > "${rc_cgroup_path}/${key}"
done
return 0
}