Change barbican-api to be launched by sm.service using systemd-run
instead of start-stop-daemon. This will enable barbican-api to be
launched as a transient systemd unit under system.slice instead of a
subprocess of sm.service. Moreover, it will enable a better
visualization and monitoring of cpu consumption via
/var/log/collectd.log.
The service unit is defined as openstack-barbican-api.service to not
conflict with 'barbican-api' name already present on
/lib/systemd/system/barbican-api.service which is used during bootstrap
process.
Test-Plan (AIO-SX/AIO-DX):
PASS: build-pkgs
PASS: Install ISO and bootstrap
PASS: systemd-cgls show openstack-barbican-api.service under system.slice
PASS: /var/log/collectd.log shows cpu consumption for
openstack-barbican-api service
Test-Plan (AIO-DX):
PASS: Perform host-swact and check:
- no alarms in <fm alarm-list> command
- no unexpected logs in sm-customer.log and sm.log
Story: 2011377
Task: 52093
Change-Id: I2394948ba667328d39214dd4addac98aa731d53b
Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>