#!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (c) 2009 FUJITSU LIMITED # Author: Li Zefan trap exit USR1 while true; do mount -t cgroup xxx cgroup/ > /dev/null 2>&1 cat cgroup/release_agent > /dev/null 2>&1 umount cgroup/ > /dev/null 2>&1 done