From: "Vladimir V. Kamarzin" <vvk@vvk.pp.ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: [Sysadmins] I: ovz users, check your syslog config Date: Tue, 21 Dec 2010 15:38:25 +0500 Message-ID: <m3zkrzcswu.fsf@vvk.distance.ru> (raw) Hi Только что обнаружил ужасную конфигурацию syslog в openvz-контейнерах, которые были развёрнуты на базе шаблонов, сделанных spt (во времена 4.0), а именно, в /etc/syslog.conf: # Log all to the console. *.* /var/log/syslog/console Мало того, что это приводит к дублированию всего, что пишется в отдельные файлы, так ещё и запись ведётся с sync() (т.к. перед именем файла нет "-"). А берётся оно из: cat spt-altlinux-branch-4.0/profile/ovz/hooks.d/06syslog #!/bin/sh -e subst 's,\/dev\/tty12,/var/log/syslog/console,' /etc/syslog.conf Если у вас шаблоны сделаны не spt, то скорее всего проблемы нет, т.к. /etc/vz/dists/scripts/postcreate.sh содержит функцию fixsyslog(), которая комментирует строчки с /dev/tty*. -- vvk
next reply other threads:[~2010-12-21 10:38 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-21 10:38 Vladimir V. Kamarzin [this message] 2010-12-21 16:21 ` Michael Shigorin 2010-12-21 16:26 ` Konstantin Pavlov 2010-12-21 16:44 ` Michael Shigorin 2010-12-22 11:22 ` Timur Batyrshin 2010-12-22 11:33 ` Michael Shigorin 2010-12-22 11:30 ` Timur Batyrshin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=m3zkrzcswu.fsf@vvk.distance.ru \ --to=vvk@vvk.pp.ru \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git