]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ouput the last few lines of logs if the server fails to start
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 28 Feb 2013 01:48:45 +0000 (20:48 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 28 Feb 2013 01:48:45 +0000 (20:48 -0500)
src/tests/Makefile

index fddbd5e66b82a406efa06bfddb2e0f05ae3be491..859bac333a298ac968ba565e8537f87e04e1c2a6 100644 (file)
@@ -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.