From b24bd31f459462c0daef6bb29f88b5b98989755d Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Thu, 21 Jun 2012 20:48:52 +0300 Subject: [PATCH] build-vm: 06syslog should differ from VE's one There's no need to disable console as it's emulated too, and it still can be helpful or just convenient. --- features.in/build-vm/image-scripts.d/06syslog | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/features.in/build-vm/image-scripts.d/06syslog b/features.in/build-vm/image-scripts.d/06syslog index fe32fad7..e9c4830c 100755 --- a/features.in/build-vm/image-scripts.d/06syslog +++ b/features.in/build-vm/image-scripts.d/06syslog @@ -1,16 +1,12 @@ #!/bin/sh -e -# tweak syslog configuration to: -# - avoid logging to a nonexistent tty; -# - avoid hard sync logging (one is better off doing -# remote syslog if you do care for reliable data anyways) +# tweak syslog configuration to avoid hard sync logging (one is better off +# doing remote syslog if you do care for reliable data anyways) # credits: vvk@, thresh@ (2010) CONFIG=/etc/syslog.conf [ ! -f "$CONFIG" ] || \ sed -i \ - -e 's,/dev/tty12,/var/log/syslog/console,' \ - -e 's,^.*/var/log/syslog/console$,#&,' \ -e 's,-/var/log/,/var/log/,g' \ -e 's,/var/log/,-/var/log/,g' \ "$CONFIG"