Lines Matching refs:slice
106 grep -q "frozen $2" /sys/fs/cgroup/system.slice/"$1"/cgroup.events
218 local slice="bar.slice"
221 systemd-run --unit "$unit" --slice "$slice" sleep 3600 >/dev/null 2>&1
226 systemctl freeze "$slice"
227 check_freezer_state "${slice}" "frozen"
229 grep -q "frozen 1" /sys/fs/cgroup/"${slice}"/cgroup.events
230 grep -q "frozen 1" /sys/fs/cgroup/"${slice}"/"${unit}"/cgroup.events
234 systemctl thaw "$slice"
236 check_freezer_state "${slice}" "running"
237 grep -q "frozen 0" /sys/fs/cgroup/"${slice}"/cgroup.events
238 grep -q "frozen 0" /sys/fs/cgroup/"${slice}"/"${unit}"/cgroup.events
242 systemctl stop "$slice"
248 local slice="bar.slice"
251 systemd-run --unit "$unit" --slice "$slice" sleep 3600 >/dev/null 2>&1
256 echo 1 >/sys/fs/cgroup/"${slice}"/cgroup.freeze
261 check_freezer_state "${slice}" "running"
265 grep -q "frozen 1" /sys/fs/cgroup/"${slice}"/cgroup.events
266 grep -q "frozen 1" /sys/fs/cgroup/"${slice}"/"${unit}"/cgroup.events
270 echo 0 >/sys/fs/cgroup/"${slice}"/cgroup.freeze
274 check_freezer_state "${slice}" "running"
275 grep -q "frozen 0" /sys/fs/cgroup/"${slice}"/cgroup.events
276 grep -q "frozen 0" /sys/fs/cgroup/"${slice}"/"${unit}"/cgroup.events
282 echo 1 >/sys/fs/cgroup/"${slice}"/cgroup.freeze
283 echo 0 >/sys/fs/cgroup/"${slice}"/cgroup.freeze
284 check_freezer_state "${slice}" "running"
289 systemctl stop "$slice"
294 test -e /sys/fs/cgroup/system.slice/cgroup.freeze && {