When installing the minimal template of CentOS 5, cron is not installed, but yum behaves as if it was installed: # vzctl create 2040 Creating VE private area (centos-5.0-i386-minimal) Performing postcreate actions VE private area was created # vzctl start 2040 Starting VE ... VE is mounted Setting CPU units: 1000 Configure meminfo: 65536 VE start in progress... #vzyum 2040 install crontabs exec /usr/share/vzyum/bin/yum -c /vz/template/centos/5.0/i386/config/yum.conf --installroot /vz/root/2040 --vps=2040 install crontabs Setting up Install Process Setting up repositories dag 100% |=========================| 1.1 kB 00:00 base 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 951 B 00:00 centosplus 100% |=========================| 951 B 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 99 kB 00:00 updates : ################################################## 184/184 Added 4 new packages, deleted 0 old in 0.44 seconds Parsing package install arguments Nothing to do # vzctl enter 2040 entered into VE 2040 # find . -name "*cron*" ./var/log/cron ./etc/crontab ./etc/cron.daily ./etc/cron.weekly ./etc/cron.hourly ./etc/cron.monthly
Hi, Please enter VPS and show the output of: rpm -qa | grep cron You can use -qf option for rpm to find out what package owns particular file. In your case please show for example the output of: rpm -qf /etc/crontab inside VE. Thank You!
this is the problem: # rpm -qa | grep cron crontabs-1.10-8 # which crond /usr/bin/which: no crond in (/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin::/root/bin) cron looks like it is installed but, in fact, it is not. this is using the CentOS 5 minimal template. The full template has it really installed. I tried with yum to uninstall crontabs and reinstall it, but to no avail. Should I force it with rpm instead then? (if so, how?)
Hi, crond is not belong to crontabs-1.10-8. i suppose you should to install vixie-cron package. As I mentioned you can use "rpm -qf" to find out what package owns particular file. As I can see one of your VPS has crond. Please enter it and please type: rpm -qf `which crond` and you can see what package contains crond file. Thank You!
oh, I didn't know that. I thought it was the same package. My mistake. ok, problem solved! thanks for the help!