HEX
Server: Apache/2.4.59 (Debian)
System: Linux keymana 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
User: lijunjie (1003)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //snap/core/17272/etc/init/cgproxy.conf
description "cgroup management proxy"
author "Serge Hallyn <serge.hallyn@ubuntu.com>"

respawn
expect stop
emits cgmanager-ready

# in trusty /sys/fs/cgroup will be mounted for us.
# prior to saucy, we would need to start on mounted
# MOUNTPOINT=/sys, and mount /sys/fs/cgroup ourselves
start on started cgmanager
stop on runlevel [06]

# to get debug output into /var/log/upstart/cgproxy.log, create/edit
# /etc/default/cgmanager and set cgmanager_opts="--debug"
env cgmanager_opts=""
env NESTED="no"

pre-start script
	# check whether we should start
	if [ -e /proc/self/ns/pid ] && [ "$NESTED" = "no" ]; then
		initctl emit -n cgmanager-ready
		{ stop; exit 0; }
	fi
end script

script
	[ -r /etc/default/cgmanager ] && . /etc/default/cgmanager

	exec /sbin/cgproxy --sigstop $cgmanager_opts
end script

post-start script
initctl emit -n cgmanager-ready
initctl notify-cgroup-manager-address "unix:path=/sys/fs/cgroup/cgmanager/sock" || true
end script