We detangle the two actions so that they can be performed independently
and on different conditions. This makes it possible to start the
rtpengine-recording-daemon only on the active node, and on some
role-specific nodes, while mounting the NFS filesystem in other
nodes.
We do not remove the nfs-setup start from the recording daemon init
script as sysvinit does not honor dependencies during direct init.d
or service(8) invocations.
[gjover@sipwise.com: Adapt changes to sysvinit. ]
Change-Id: Ibb637c533c94bc3db119111460ca647a50a205af
(cherry picked from commit 0224a49162)
We move the NFS setup into its own init script so that we can manage its
actions independently.
[gjover@sipwise.com: Rework the original systemd commit for sysvinit. ]
Change-Id: I990d6847117a4b91a8365a5e307fd96cf5b1899f
(cherry picked from commit 79807a9c2e)
These daemons require these facilities to be setup. Previously this
was implied and shadowed by the sshd dependency, but once removed
the implicit dependencies disappeared, make them explicit now.
Change-Id: I13b9b797da0d69636c0f87d92d80a9af46c0726c
(cherry picked from commit 2ebe76d535)
If we are creating the kernel forwarding table, we have to make sure it
has been deleted already, otherwise we can get into collisions with the
already setup forwardings, and the subsequent add will fail anyway.
Change-Id: I2601c602543ff3e3493bae296d263dde545ff352
(cherry picked from commit fd3c1d2519)
- Add missing quotes.
- Switch some problematic usages to use bash arrays.
- Override shellcheck errors (these might need fixing in the future).
Change-Id: Id451ff9f4c5d5ef9b3826544908d64e9c08c5797
(cherry picked from commit 53b3c36939)
Even though this is a false-positive, it confuses checkbashisms. So
let's rename the variables to something else, even more descriptive,
to avoid the check error.
Change-Id: Ife79bf76121bb4e3c120525ffe5a0eca871936f6
(cherry picked from commit 747661ff0d)
We want to have the same behavior as within
ngcp-rtpengine-recording-daemon's init script. Let's avoid code
duplication between start/stop vs restart and instead invoke
plain stop + start actions via restart.
While at it fix missing 'set -e' that was caught by Richard
during creation of ngcp-rtpengine-recording-daemon's init
script.
Change-Id: I4ef894d17e5e716f6f75eb59a153ba026e1df685
The redis onekey concepts is introduced to reduce traffic to redis
and redis notification traffic.
It modifies the current structure for one call in redis, which are
multiple keys with pre- and postfixes and the callid in between to
one key with the structure "json-<callid>". The value is a json
formatted string with the previous multi-key identifiers in it.