Browse Source
Modified mtce-guest to address the following failing services on Debian: guestAgent.service guestServer.service (the service provides a means of guest heartbeat orchestration under VIM (system management) control) Applied fix: - Included modified .service files for debian directly into the deb_folder. - Included "override_dh_installsystemd" section to rules in order to start guestServer at boot and guestAgent with --no-enable option - Removed guestAgent.service and guestServer.service install from Makefile to spec, in order to override (for CentOS build) - Modified service scripts to fork for Daemon location - Move binaries to usr/local/bin PASS: Package installed and ISO built on Debian successfully PASS: Services are running correctly after loading the image: guestServer is started automatically, guestAgent (--no-enable) runs correctly when started via systemctl PASS: guestServer runs as expected after bootstrap PASS: Package installed and ISO built on CentOS successfully PASS: Services are running on CentOS after bootstrap and unlock correctly Story: 2009101 Task: 44323 Change-Id: I856fcc78c41953ae37e7c2cf1361b4466b15720bchanges/96/830596/20
7 changed files with 52 additions and 9 deletions
@ -0,0 +1,16 @@
|
||||
[Unit] |
||||
Description=StarlingX Guest Agent |
||||
After=network.target syslog.service |
||||
|
||||
[Service] |
||||
Type=forking |
||||
ExecStart=/etc/init.d/guestAgent start |
||||
ExecStop=/etc/init.d/guestAgent stop |
||||
ExecReload=/etc/init.d/guestAgent reload |
||||
PIDFile=/var/run/guestAgent.pid |
||||
|
||||
Restart=no |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
||||
|
@ -0,0 +1,23 @@
|
||||
[Unit] |
||||
Description=StarlingX Maintenance Guest Heartbeat Monitor Server |
||||
After=network.target syslog.service config.service |
||||
Before=pmon.service |
||||
|
||||
[Service] |
||||
Type=forking |
||||
ExecStart=/etc/init.d/guestServer start |
||||
ExecStop=/etc/init.d/guestServer stop |
||||
ExecReload=/etc/init.d/guestServer reload |
||||
PIDFile=/var/run/guestServer.pid |
||||
|
||||
# Failure handling |
||||
TimeoutStartSec=10s |
||||
TimeoutStopSec=10s |
||||
|
||||
# process recovery is handled by pmond |
||||
Restart=no |
||||
RestartSec=5 |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
||||
|
Loading…
Reference in new issue