checks.c: cleaned `reschedule failed scheduled service checks'

if a given scheduled service check failed by any reason we
need to reschedule it only if it is supposed to be scheduled.

the old code works like a charm, despite the fact it looks
a little bit bizarre. imho new code gets much more cleaner this way,
no functional changes.

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
naemon/checks.c removed uneeded call to update_service_status()

update_service_status() was useful when aggregate_status_updates
was enabled. as aggregate_status_updates has been removed since
last version we just don't need it anymore.

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
naemon/utils.c: refactoring of check_file_size

refactored check_file_size to make it easier to read

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
naemon/utils.c: refactoring and bug fixes on SIGXFSZ signal handler

- refactoring of signal handler for SIGXFSZ signal
- returning if we are unable to get system limits with getrlimit()
  otherwise we gonna fail a few lines below when refering to `rlim'
- removed unnecessary `/dev/null' strcmp() call once it is not a
  regular file, causing check_file_size to return 0

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
change log archive file format to something that sorts properly

use YYYY-MM-DD-HH as file format, so it would sort properly. This
also makes cleanup of old log files much easier.

Signed-off-by: Sven Nierlein <sven@consol.de>
Merge branch 'ricardomaraschini-patches'
naemon/utils.c: solved indentation bugs

comments changed to something readable by doxigen and some
blank spaces got removed also.

using ./indent.sh now to be sure about the right style.

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
Add default sysconfig file
Add nicelevel to start-stop-daemon
Add docs to makefile
Merge branch 'ricardomaraschini-utils'