metal/mtce/debian/deb_folder/fsmon.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
428 B
Desktop File

[Unit]
Description=StarlingX Maintenance Filesystem Monitor
After=network.target syslog.service config.service
Before=pmon.service
[Service]
Type=forking
ExecStart=/etc/init.d/fsmon start
ExecStop=/etc/init.d/fsmon stop
ExecReload=/etc/init.d/fsmon reload
PIDFile=/var/run/fsmond.pid
# Failure handling
TimeoutStartSec=10s
TimeoutStopSec=10s
# restarted by pmon
Restart=no
RestartSec=5
[Install]
WantedBy=multi-user.target