logmsg: log_msg_ack() code refactored little bit

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
logmsg: log_msg_cached abort type is a boolean value (and not an integer)

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
logqueue: the way we determine whether a queue is empty or not is racy

at this time we just use this racy function but we have to know about it:
this is why we rename it to is_empty_racy()

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
logwriter: pending_proto re-established (we need it)

A pending proto can be set to null while it is present.
[see: log_writer_reopen_deferred]

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
logqueue: ack_backlog checking is moved to the superclass

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
logqueue: is_empty() fixed

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
logwriter: flush modes refactored

only two modes left: one for normal flush (LW_FLUSH_NORMAL)
and one for force mode (LW_FLUSH_FORCE)

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
service-management: add service_management_get_type() function

Signed-off-by: Tibor Benke <ihrwein@gmail.com>
ack: use the correct LMAck signature

Signed-off-by: Laszlo Budai <stentor.bgyk@gmail.com>
Merge pull request #179 from lbudai/f/merge-proto-fix

F/merge proto fix
afsocket: add systemd-syslog() source

Signed-off-by: Tibor Benke <ihrwein@gmail.com>
system-source: change to systemd-syslog() source, when the running init system is systemd

Signed-off-by: Tibor Benke <ihrwein@gmail.com>
Merge pull request #184 from ihrwein/f/add-systemd-syslog-source

F/add systemd syslog source
Enable threaded mode by default

With this patch, threaded(yes) becomes the default. In case one wants to
turn it off, threaded(no) must be set.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
afsocket: Consider afsocket-systemd-override.h a source file too

In order to be able to build from a make dist tarball, we need to ship
afsocket-systemd-override.h too, so add it to the list of afsocket
sources.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
afsmtp: set value for success to avoid uninitialized value using for success

Signed-off-by: Juhász Viktor <jviktor@balabit.hu>
afsmtp: Drop MARK messeges

Signed-off-by: Juhász Viktor <jviktor@balabit.hu>
afsmtp: support retries() option

Signed-off-by: Juhász Viktor <jviktor@balabit.hu>
Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
afsmtp: add the smtp to stats

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
afsmtp: add template options

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>