OpenVZ Forum


Home » General » Support » Problem on creating debian template
Problem on creating debian template [message #36020] Wed, 13 May 2009 05:27 Go to next message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
Hi folks,


On creating ostemplate I encountered following error;

Disable sync() for syslog
http://wiki.openvz.org/Debian_template_creation#Disable_sync .28.29_for_syslog


# sed -i -e 's@\([[:space:]]\)\(/var/log/\)@\1-\2@' /etc/syslog.conf
sed: can't read /etc/syslog.conf: No such file or directory


# updatedb

# locate syslog.conf
/etc/rsyslog.conf
/usr/share/man/man5/rsyslog.conf.5.gz
/var/lib/dpkg/info/rsyslog.conffiles


Please advise how to fix the problem. TIA


B.R.
satimis


Re: Problem on creating debian template [message #36023 is a reply to message #36020] Wed, 13 May 2009 07:20 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Debian 5.0 can use rsyslog and thus rsyslog.conf rather than syslog.conf, but the format of the file remains the same AFAIK (still you'd better check it).

So just change /etc/syslog.conf to /etc/rsyslog.conf in sed cmdline. I have fixed the wiki accordingly.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Problem on creating debian template [message #36029 is a reply to message #36023] Wed, 13 May 2009 11:27 Go to previous message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
kir wrote on Wed, 13 May 2009 15:20

Debian 5.0 can use rsyslog and thus rsyslog.conf rather than syslog.conf, but the format of the file remains the same AFAIK (still you'd better check it).

So just change /etc/syslog.conf to /etc/rsyslog.conf in sed cmdline. I have fixed the wiki accordingly.


Hi kir,

Thanks. Problem solved.

satimis
Previous Topic: which is process
Next Topic: Enabling TUN/TAP for VPN on containers following guide but no result
Goto Forum:
  


Current Time: Mon Jul 28 21:28:36 GMT 2025

Total time taken to generate the page: 0.53467 seconds