I see that as a workaround. We'd better find a reason why it happens that way.

Can you demonstrate that mtime of /etc/cron.d is not changed?

PS please consider subscribing for users@

Gerald Villemure wrote:
The init script in vzctl-3.0.18 installs the file:
 /etc/cron.d/vz
as part of its startup, what is strange as that on CentOS5 at least the last mod of the folder /etc/cron.d is NOT updated!

What this means its that CRON does not know about the new file as as such does not run it.

Hope this info helps,
GĂ©rald

Here is a quick patch to fix the prob:

--- /etc/init.d/vz_orig     2007-07-31 16:54:05.000000000 -0400
+++ /etc/init.d/vz  2007-11-17 01:56:30.000000000 -0500
@@ -131,6 +131,7 @@
       [ -d "$SRC_CRONSCRIPT_DIR" ] || return
       cat $SRC_CRONSCRIPT_DIR/vz* > $DST_CRONSCRIPT_DIR/vz && \
               chmod 644 $DST_CRONSCRIPT_DIR/vz
+       touch -m $DST_CRONSCRIPT_DIR
}

remove_cron()



_______________________________________________
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users

Reply via email to