Added very basic, stand-alone core 4 worker

This commit adds a bare-bones, stand-alone core 4 worker which handles
ping checks. It is primarily meant as a template for other workers. 

It still lacks the ability to drop privileges or to daemonize itself,
both of which are intended to be aded shortly.


git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2586 5f96b256-904b-4d8d-8c98-d829582c6739
core: Never free() global_macro.x[MACRO_LOGFILE]

We only assign it from log_file nowadays, so we really shouldn't
ever free it.

We also remove the second pass of test_configured_paths() from
the verification step, as it's completely unnecessary.

Reported-by: Robin Sonefors <rsonefors@op5.com>
Reported-by: Mark Frost <mark.frost1@pepsico.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>

git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2587 5f96b256-904b-4d8d-8c98-d829582c6739
core: Make running Nagios from the path work properly

If nagios is executed as simply 'nagios', we previously used to
fail to locate the executed binary. This patch adds a "search path
for proper program" thing and runs that to locate our own executable
in case we can't find it by normalizing the path used to start it.

Signed-off-by: Andreas Ericsson <ae@op5.se>

git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2588 5f96b256-904b-4d8d-8c98-d829582c6739