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: Ie61cedac24f84baea80cab6a69772f8b2e9e1395changes/62/825362/3
parent
4c8abe18d3
commit
360a344370
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Crash Dump Manager
|
||||
After=network.target
|
||||
Before=sshd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
ExecStart=/etc/init.d/crashDumpMgr --max-size 5Gi
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,23 @@
|
||||
[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
|
||||
|
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=StarlingX Maintenance Goenable Ready
|
||||
After=config.service
|
||||
Before=pmon.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/etc/init.d/goenabled start
|
||||
ExecStop=/etc/init.d/goenabled stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,23 @@
|
||||
[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
|
||||
|
@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=StarlingX Maintenance Command Handler Client
|
||||
After=network.target syslog.service config.service
|
||||
Before=pmon.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/init.d/mtcClient start
|
||||
ExecStop=/etc/init.d/mtcClient stop
|
||||
ExecReload=/etc/init.d/mtcClient reload
|
||||
PIDFile=/var/run/mtcClient.pid
|
||||
KillMode=process
|
||||
SendSIGKILL=no
|
||||
|
||||
# Process recovery is handled by pmond if its running.
|
||||
# Delay 10 seconds to give pmond a chance to recover
|
||||
# before systemd kicks in to do it as a backup plan.
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,5 +1,4 @@
|
||||
etc/init.d/hostw
|
||||
etc/logrotate.d/hostw.logrotate
|
||||
etc/mtc/hostwd.conf
|
||||
lib/systemd/system/hostw.service
|
||||
usr/bin/hostwd
|
||||
|
@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=StarlingX Maintenance Process Monitor
|
||||
After=config.service
|
||||
# The following thirdparty service files are not modified by StarlingX,
|
||||
# so add "After" clauses here rather than "Before=pmon.service" to those
|
||||
After=sshd.service acpid.service syslog-ng.service
|
||||
After=ntpd.service ptp4l.service phc2sys.service
|
||||
Before=hostw.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/init.d/pmon start
|
||||
ExecStop=/etc/init.d/pmon stop
|
||||
ExecReload=/etc/init.d/pmon reload
|
||||
PIDFile=/var/run/pmond.pid
|
||||
KillMode=process
|
||||
|
||||
# Failure handling
|
||||
TimeoutStartSec=10s
|
||||
TimeoutStopSec=10s
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in new issue