Instead of hardcoding -I/usr/include/mysql for CFLAGS and -lmysqlclient
for LDFLAGS, let's use mariadb_config if available (e.g. on
Debian/buster), try mysql_config otherwise (e.g. on Debian/stretch) or
if neither of them is available, fallback to -I/usr/include/mysql +
-lmysqlclient.
No longer include `m_string.h`, it was moved towards
/usr/include/mariadb/server/m_string.h and is no longer compatible when
used as such:
| /usr/include/mariadb/server/m_string.h:89:23: error: unknown type name 'uchar'; did you mean 'char'?
| extern void bmove_upp(uchar *dst,const uchar *src,size_t len);
Also no longer use libmysqlclient15-dev as alternative Build-Depend,
it's not available in neither stretch nor buster.
While at it drop include for my_global.h, since it shouldn't be included
anymore (and it doesn't seem to be relevant for us, compiling fine as-is
on Debian/stretch and Debian/buster):
| /usr/include/mariadb/my_global.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
Change-Id: I74a75ea24f72880adb8117ae5808095f03bc0edb
Is service B "Requires" service A to be started before B
and B does NOT require B restart on A restart, B should use "Wants=A".
Also using real service name mariadb.service instead of alias one.
The same for redis-server.service.
Also migrate from alias mysql.service to mariadb.service.
Change-Id: I94276a8647053646abd545e4d5b768b284b8a652
Since recently (see below), this service depends on redis-server but it didn't
declare it as dependency in its systemd unit file, so the service will not wait
for Redis, on which it depends on, and will fail to start properly.
commit 2812d161a5
Date: Mon Feb 26 16:09:35 2018 +0100
(Catched by tests of the task in the first line).
Change-Id: I599c8c2fa8ac4e2c7428bb787889f3c9f00185e2
* Fetch acc records both from mysql and redis
* Backup/trash redis acc records into mysql
* Introduce loglevel config option and log macros
Change-Id: I9bc55ed72502feaff03550c99ce481aea33e5e58
Shipping this alias as a symlink under /lib/systemd/system, guarantees
that it will be available even when the service is disabled. And it will
override the init script and avoid systemd autogenerating a compat
service.
Change-Id: Iacc6f952ac0d57bf33bdec3c6e23a59f4f42097e
This service file assumes that the new mediator configuration is in
place to define all the options to use.
Change-Id: I876a0764f3355dd040baf4824794483ec734e2f3
- Bump debhelper compatibility version 10.
- Switch from Priority extra to optional.
- Update debian/.gitignore file.
Change-Id: I5985edfdf3eba07364ca7f9291f1c7f96a753b24
We want to make sure the process has been stopped, or killed after the
timeout has been reached. Not doing so incurs in race conditions and
multiple instances running.
Change-Id: Ied0a32384411cc490b1fc84c2f08ccf69ed8f38a
Warnings:
> possible bashism in source/debian/mediator.init ... (echo -n)
replaced with log_daemon_msg as lsb is in use.
> FULLPATH appears unused. Verify it or export it.
Removed.
> Double quote to prevent globbing and word splitting.
quoted where it is necessary and possible, muted for $OPTIONS.
> Use $(..) instead of deprecated `..`
Done.
Change-Id: I4cbaee5859ab6deb25aef8ebbd1e392bd418b486
Revert logic to pick peer id from stop record. This needs a better
approach somehow.
Instead, add logic to always take -pbx_1 and -xfer_1 stop records
into account when searching for stop records, to fix duration of
CDRs on transfer and park/unpark (which is just a special case
of transfer).
Change-Id: Ia80add6d5cb762800c563889c0d95ee25ed74168