OpenVZ Forum


Home » General » Support » CentOS 5 template and cron
CentOS 5 template and cron [message #26194] Thu, 17 January 2008 00:53 Go to next message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
Member
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


[Updated on: Thu, 17 January 2008 00:53]

Report message to a moderator

Re: CentOS 5 template and cron [message #26218 is a reply to message #26194] Thu, 17 January 2008 13:39 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
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!
Re: CentOS 5 template and cron [message #26225 is a reply to message #26218] Thu, 17 January 2008 19:37 Go to previous messageGo to next message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
Member
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?)
Re: CentOS 5 template and cron [message #26235 is a reply to message #26225] Fri, 18 January 2008 09:31 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
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!

[Updated on: Fri, 18 January 2008 09:31]

Report message to a moderator

Re: CentOS 5 template and cron [message #26255 is a reply to message #26235] Fri, 18 January 2008 18:57 Go to previous message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
Member
oh, I didn't know that. I thought it was the same package. My mistake.

ok, problem solved! thanks for the help!
Previous Topic: Starting VEs on 2.6.24-rc7 (git.openvz.org)
Next Topic: 2.6.18-ovz028stab053.4-smp problem/question
Goto Forum:
  


Current Time: Sun Aug 11 14:23:46 GMT 2024

Total time taken to generate the page: 0.02942 seconds