OpenVZ Forum


Home » General » Support » Cron weird behaviour (running twice)
Cron weird behaviour (running twice) [message #51355] Sat, 26 April 2014 13:58
Matt35 is currently offline  Matt35
Messages: 1
Registered: April 2014
Junior Member
Hello,

I've just discovered a weird problem on a OpenVZ hypervisor.
When I set up a crontab on a CT hosted on this physical node, it appears that it's running twice : one time as the CT (normal) & a second time as the physical node.

Here is the simple script I used to test :

#!/bin/bash
DATE=$(date +%H:%M:%S)
HOST=$(hostname)
echo "$HOST $DATE" >> /tmp/test_hst


Here is the content of /tmp/test_hst :
veapp02 17:05:01
vznode08 17:05:01
veapp02 17:10:01
vznode08 17:10:01
veapp02 17:15:01
vznode08 17:15:01
vznode08 17:20:01
veapp02 17:20:01


As you can see the OVZ HyperV runs the cron as well !
(It does the same thing with all VE hosted on this node).

Anyone can explain this behaviour ?

Kernel & tools:
Linux spglo0008vz 2.6.18-274.7.1.el5.028stab095.1 #1 SMP Mon Oct 24 20:49:24 MSD 2011 x86_64 x86_64 x86_64 GNU/Linux

vzctl-core-4.2-1
vzquota-3.1-1
vzrpm43-python-4.3.3-7_nonptl.6
vzpkg-2.7.0-18
vzrpm43-4.3.3-7_nonptl.6
vzrpm44-4.4.1-22.5
vztmpl-centos-5-2.0-2
vzdump-1.2-4
vzyum-2.4.0-11
vzrpm44-python-4.4.1-22.5
vzctl-4.2-1


Thanks in advance,

Regards.

Matthew.

 
Read Message
Previous Topic: vzctl update breaks classic chkpnt on 2.6.18 based kernel
Next Topic: After updating to newest OpenVZ NFS seems to have a problem
Goto Forum:
  


Current Time: Sun Jul 14 09:19:37 GMT 2024

Total time taken to generate the page: 0.03553 seconds