metal/mtce/debian/deb_folder/hwmon.service
Matheus Machado Guilhermino 4c8abe18d3 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
2022-01-14 10:50:09 -03:00

17 lines
287 B
Desktop File

[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