From: Arran Cudbard-Bell Date: Thu, 28 Feb 2013 01:48:45 +0000 (-0500) Subject: Ouput the last few lines of logs if the server fails to start X-Git-Tag: release_2_2_1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd8e5169fae790cff479a4b99cd3f9967a23e7d3;p=thirdparty%2Ffreeradius-server.git Ouput the last few lines of logs if the server fails to start --- diff --git a/src/tests/Makefile b/src/tests/Makefile index fddbd5e66b8..859bac333a2 100644 --- a/src/tests/Makefile +++ b/src/tests/Makefile @@ -50,7 +50,7 @@ test.conf: dictionary @echo '$$INCLUDE $${testdir}/config/' >> test.conf radiusd.pid: ../../raddb/test.conf test.conf - @$(top_builddir)/src/main/radiusd -txxl `pwd`/radius.log -md $(top_builddir)/raddb/ -n test -i 127.0.0.1 -p $(PORT) + @$(top_builddir)/src/main/radiusd -txxl `pwd`/radius.log -md $(top_builddir)/raddb/ -n test -i 127.0.0.1 -p $(PORT) || tail -n 20 `pwd`/radius.log # We can't make this depend on radiusd.pid, because then make will create # radiusd.pid when we make radiusd.kill, which we don't want.