OpenVZ Forum


Home » General » Support » creating a centos-5 os-template...
Re: creating a centos-5 os-template... [message #31855 is a reply to message #31433] Fri, 11 July 2008 06:22 Go to previous message
steve is currently offline  steve
Messages: 25
Registered: June 2007
Location: Orange County, California
Junior Member
madsere-

Following Fedora's lead (F8) with CentOS 5.2 rsyslogd has become the default replacing sysklogd. As such you can comment out/change the following sections from /vz/template/centos/5/i386/config/install.post:


The following is no longer required as there is no separate klogd daemon in rsyslog:
# Disable klogd
#$VZCTL exec2 $VEID \
#       "sed -i -e 's/daemon\\ klogd/passed\\ klogd\\ skipped/' \
#               -e 's/killproc\\ klogd/passed\\ klogd\\ skipped/' \
#                       /etc/init.d/syslog"
# FIXME: fix '/etc/init.d/syslog status' to return 0
# even if klogd is not running

Change the /etc/syslog.conf to /etc/rsyslog.conf in the following area of the file:
# Disable fsync() in syslog
$VZCTL exec2 $VEID \
       'sed -i -e s@\\\([[:space:]]\\\)\\\(/var/log/\\\)@\\\1-\\\2@' \
               /etc/rsyslog.conf

Now your templates should build perfectly.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: iptables help please
Next Topic: Handling resources for several VPS
Goto Forum:
  


Current Time: Wed Jul 23 21:28:50 GMT 2025

Total time taken to generate the page: 0.24065 seconds