The uptime command and Hive
Can I use the uptime command for page loads when running HIVE?
The uptime command is not available by default when running HIVE. It requires libproc and also requires /proc to be mounted as it reads all of its data from there.
If you want to enable the uptime command for your server while using Hive, follow the instructions below:
UPDATE: 04.Oct.2011: Read this article on how to enable /proc
- You have to first copy all libraries that a command requires before it actually begins to work.
- You should have the necessary files in /proc so you should either:
- you either mount the /proc inside the chroot
- create a directory with the text files needed by the uptime command and thus lie to the command.
IMPORTANT: We don't encourage mounting of the /proc filesystem inside the chroot because it may pose a security risk. But if you really need to you can mount it at /var/suexec/baseos/proc.
The commands you should use are:
mkdir /var/suexec/baseos/proc mount --bind /proc /var/suexec/baseos/proc
What those command will do is:
Create the /var/suexec/baseos/proc directory. Mount bind the /proc in /var/suexec/baseos/proc.
Then clear the users' mounts by running: