|
From: Heiko Z. <he...@zu...> - 2005-11-24 16:03:12
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks, I applied the patch.
I also added the missing 'jail stop' to sagator and postfix.
On Thu, November 24, 2005 06:23, Michal Weinfurtner wrote:
> There is bug in jail script. When jail script trying to add log stream
> from jail to syslog-ng config file, there is bad grep pattern defined and
> it does not detect already defined stream in syslog-ng.conf. It means that
> this stream definition is added again and again. This bug works just in
> combination with sagator, due sagator start script does not have jail
> stop command defined and unix stream is not removed from syslog-ng.conf. I
> really don't know what is worst thing, bur i made this little patch which
> works for me :)
>
>
> diff -urN orig/etc/init.d/jail fixed/etc/init.d/jail ---
> orig/etc/init.d/jail 1980-01-01 07:01:01.000000000 +0100 +++
> fixed/etc/init.d/jail 2005-11-24 13:18:23.000000000 +0100 @@ -267,7
> +267,7 @@
>
>
> case $SYSLOG_DAEMON in syslog-ng ) - if [ -z "$(grep
> "unix-stream(\"$JAILDIR/dev/log\");" /etc/syslog-ng/syslog-ng.conf)" ];
> then + if [ -z "$(grep
> "unix-stream(\"$JAILDIR/dev/log\"" /etc/syslog-ng/syslog-ng.conf)" ];
> then sed -e "s|^source src {|source src { unix-stream(\"$JAILDIR/dev/log\"
> max_connections(1000));|" < /etc/syslog-ng/syslog-ng.conf > /tmp/tmpfile
> mv /tmp/tmpfile /etc/syslog-ng/syslog-ng.conf /etc/init.d/syslog reload
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Devil-linux-discuss mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss
>
>
- --
Regards
Heiko Zuerker
http://www.devil-linux.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDheQeUcytMSbs+YURAtoeAJ9TM8zDR46niYuJu+34efO1vP7LGwCeIwgQ
Mwjy2Hs47cneJGgHcQwkM6o=
=P9Ba
-----END PGP SIGNATURE-----
|