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: I50915c17d6f50f5e20e6448d3e75bfe54a75acc0changes/71/821871/8
parent
14cac85e31
commit
4c8abe18d3
@ -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
|
@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=StarlingX Maintenance Heartbeat Client
|
||||
After=network.target syslog.service config.service
|
||||
Before=pmon.service mtcClient.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/init.d/hbsClient start
|
||||
ExecStop=/etc/init.d/hbsClient stop
|
||||
ExecReload=/etc/init.d/hbsClient reload
|
||||
PIDFile=/var/run/hbsClient.pid
|
||||
|
||||
# Failure handling
|
||||
TimeoutStartSec=10s
|
||||
TimeoutStopSec=10s
|
||||
|
||||
# process recovery is handled by pmond
|
||||
Restart=no
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=StarlingX Hardware Monitor
|
||||
After=network.target syslog.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/init.d/hwmon start
|
||||
ExecStop=/etc/init.d/hwmon stop
|
||||
ExecReload=/etc/init.d/hwmon reload
|
||||
PIDFile=/var/run/hwmond.pid
|
||||
|
||||
Restart=no
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Starling-X Maintenance Link Monitor
|
||||
|
||||
After=config.service
|
||||
After=syslog-ng.service
|
||||
Before=pmon.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/init.d/lmon start
|
||||
ExecStop=/etc/init.d/lmon stop
|
||||
ExecReload=/etc/init.d/lmon reload
|
||||
PIDFile=/var/run/lmond.pid
|
||||
KillMode=process
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=StarlingX Maintenance Alarm Handler Client
|
||||
After=network.target syslog.service config.service
|
||||
Before=pmon.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/init.d/mtcalarm start
|
||||
ExecStop=/etc/init.d/mtcalarm stop
|
||||
ExecReload=/etc/init.d/mtcalarm reload
|
||||
PIDFile=/var/run/mtcalarmd.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,6 +1,5 @@
|
||||
etc/init.d/hwmon
|
||||
etc/logrotate.d/hwmon.logrotate
|
||||
etc/mtc/hwmond.conf
|
||||
lib/systemd/system/hwmon.service
|
||||
usr/lib/ocf/resource.d/platform/hwmon
|
||||
usr/bin/hwmond
|
||||
usr/lib/ocf/resource.d/platform/hwmon
|
||||
|
@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=StarlingX Maintenance Logger
|
||||
After=network.target syslog.service config.service
|
||||
Before=pmon.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/init.d/mtclog start
|
||||
ExecStop=/etc/init.d/mtclog stop
|
||||
ExecReload=/etc/init.d/mtclog reload
|
||||
PIDFile=/var/run/mtclogd.pid
|
||||
|
||||
# Failure handling
|
||||
TimeoutStartSec=10s
|
||||
TimeoutStopSec=10s
|
||||
|
||||
# process recovery is handled by pmond
|
||||
Restart=no
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=StarlingX Run Host Services
|
||||
After=network.target syslog.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/etc/init.d/runservices start
|
||||
ExecStop=/etc/init.d/runservices stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,4 +1,4 @@
|
||||
etc/init.d/hostw
|
||||
etc/logrotate.d/hostw.logrotate
|
||||
etc/mtc/hostwd.conf
|
||||
usr/local/bin/hostwd
|
||||
usr/bin/hostwd
|
||||
|
Loading…
Reference in new issue