Fix failing mtce services on Debian
Modified mtce and mtce-control to address the following failing services on Debian: hbsAgent.service hbsClient.service hwmon.service lmon.service mtcalarm.service mtclog.service runservices.service Applied fix: - Included modified .service files for debian directly into into the deb_folder. - Changed the init files to account for the different locations of the init-functions and service daemons on Debian and CentOS - Included "override_dh_installsystemd" section to rules in order to start services at boot. Test Plan: PASS: Package installed and ISO built successfully PASS: Ran "systemctl list-units --failed" and verified that the services are not failing PASS: Ran "systemctl status <service_name>" for each service and verified that they are active Story: 2009101 Task: 44192 Signed-off-by: Matheus Machado Guilhermino <Matheus.MachadoGuilhermino@windriver.com> Change-Id: I50915c17d6f50f5e20e6448d3e75bfe54a75acc0
This commit is contained in:
13
mtce-control/debian/deb_folder/hbsAgent.service
Normal file
13
mtce-control/debian/deb_folder/hbsAgent.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=StarlingX Maintenance Heartbeat Agent
|
||||
After=hbsClient.service
|
||||
Before=pmon.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/init.d/hbsAgent start
|
||||
ExecStop=/etc/init.d/hbsAgent stop
|
||||
PIDFile=/var/run/hbsAgent.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,4 +1,3 @@
|
||||
etc/init.d/goenabledControl
|
||||
etc/init.d/hbsAgent
|
||||
etc/pmon.d/hbsAgent.conf
|
||||
lib/systemd/system/hbsAgent.service
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
export ROOT = debian/tmp
|
||||
export INITDIR = $(ROOT)/etc/init.d
|
||||
export PMONDIR = $(ROOT)/etc/pmon.d
|
||||
export SYSTEMDDIR = $(ROOT)/lib/systemd/system
|
||||
|
||||
%:
|
||||
dh $@
|
||||
@@ -15,5 +14,6 @@ override_dh_auto_install:
|
||||
install -m 755 -p -D scripts/hbsAgent $(INITDIR)
|
||||
install -m 755 -d $(PMONDIR)
|
||||
install -m 644 -p -D scripts/hbsAgent.conf $(PMONDIR)
|
||||
install -m 755 -d $(SYSTEMDDIR)
|
||||
install -m 644 -p -D scripts/hbsAgent.service $(SYSTEMDDIR)
|
||||
|
||||
override_dh_installsystemd:
|
||||
dh_installsystemd --name hbsAgent
|
||||
|
||||
Reference in New Issue
Block a user