Detecting and Working with CloudLinux

Navigation:  Integration Guide >

Detecting and Working with CloudLinux

Previous pageReturn to chapter overviewNext page

Detect if system is running CloudLinux / CloudLinux kernel:

 

$ uname -r|grep lve

if you get an output, it means the system runs CloudLinux kernel. CloudLinux kernels have lve in its name, like: 2.6.32-458.18.1.lve1.2.44.el6.x86_64

Alternatively you can check for presence of file /proc/lve/list

 

Check if CageFS is enabled (as root):

 

$ /usr/sbin/cagefsctl --cagefs-status

 

Check if CageFS is enabled for particular user (as root):

$ /usr/sbin/cagefsctl --user-status _USER_NAME_

 

Check if you are inside CageFS:

 

Check for presence of file: /var/.cagefs/.cagefs.token

Presence of such file means that you are inside CageFS.