Skip to content

Commit

Permalink
Ouput the last few lines of logs if the server fails to start
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 28, 2013
1 parent a2de689 commit cd8e516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/Makefile
Expand Up @@ -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.
Expand Down

0 comments on commit cd8e516

Please sign in to comment.