[Lxc-users] cron jobs strange behavior

mrlag mrlag at buggynet.org
Fri Dec 16 12:29:40 UTC 2011


Hi,

I've installed lxc on a debian squeeze.

I have this on the lxc container crontab:

* * * * * echo $HOSTNAME > /tmp/crontest

Sometime the command returns the lxc host hostname instead of the container hostname.
I have also a script who is looking for process pid with a ps command and it has sometime this error: "Cannot find /proc/version - is /proc mounted?"

I haven't any problem if I launch the commands myself, the bug is only with cron jobs, and half the time the result of the cron job is correct, half
the time it's incorrect.

Do you know what happens ?

Vincent




More information about the lxc-users mailing list