lxc info ct01 | grep Pid
echo '{"Action": "Add", "PID": 27547, "Name": "ct01"}' | socat - UNIX-CONNECT:/var/run/cnotifyd.socket
echo '{"Action": "Remove", "PID": 27547, "Name": "ct01"}' | socat - UNIX-CONNECT:/var/run/cnotifyd.socket
echo -e "lxc.hook.start-host = /opt/lxd/cnotifyd -hook\nlxc.hook.post-stop = /opt/lxd/cnotifyd -hook\nlxc.log.level = TRACE" | lxc config set ct01 raw.lxc -
echo -e "lxc.hook.start-host = /opt/lxd/cnotifyd -hook\nlxc.hook.post-stop = /opt/lxd/cnotifyd -hook | lxc config set ct01 raw.lxc -
cat <<EOF > /usr/share/lxc/config/common.conf.d/00-fanotify.conf lxc.hook.start-host = /opt/lxd/cnotifyd -hook lxc.hook.post-stop = /opt/lxd/cnotifyd -hook EOF