metal/mtce/debian/deb_folder/hostw.service
Matheus Machado Guilhermino 360a344370 Fix remaining failing mtce services on Debian
Modified mtce to address the following
failing services on Debian:
crashDumpMgr.service
fsmon.service
goenabled.service
hostw.service
hwclock.service
mtcClient.service
pmon.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 behaving as desired
PASS: Services work as expected on CentOS
PASS: Bootstrap and host-unlock successful on CentOS

Story: 2009101
Task: 44323

Signed-off-by: Matheus Machado Guilhermino <Matheus.MachadoGuilhermino@windriver.com>
Change-Id: Ie61cedac24f84baea80cab6a69772f8b2e9e1395
2022-01-25 12:10:39 -03:00

24 lines
451 B
Desktop File

[Unit]
Description=StarlingX Maintenance Host Watchdog
After=syslog.service network.target hbsClient.service mtcClient.service sm.service fsmon.service
[Service]
Type=forking
ExecStart=/etc/init.d/hostw start
ExecStop=/etc/init.d/hostw stop
ExecReload=/etc/init.d/hostw reload
PIDFile=/var/run/hostwd.pid
# Failure handling
TimeoutStartSec=10s
TimeoutStopSec=10s
# Auto recovery
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target