[Users] PATCH for small cron prob. in /etc/init.d/vz
kir at openvz.org
Tue Nov 20 07:06:03 EST 2007
I see that as a workaround. We'd better find a reason why it happens
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:
> 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,
> 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
> Users mailing list
> Users at openvz.org
More information about the Users