After implementing Enterprise Manager/WebView automatic startup in /etc/rc.local, the Linux kernel boot sequence hangs.
search cancel

After implementing Enterprise Manager/WebView automatic startup in /etc/rc.local, the Linux kernel boot sequence hangs.

book

Article ID: 32431

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

After implementing the automatic Enterprise Manager & WebView startup at Linux server boot time via changes to /etc/rc.local, the Linux kernel boot sequence seems to hang & control does not return to the VM console being used.

The last message visible is "[INFO] [ WebServer] Web Application Server started" which is from the WebView startup.

Environment

APM 10.x Linux

Cause

Not having standard output redirection for the executable Introscope_Webview was causing the boot sequence to hang.

Resolution

Using the commands below in/etc/rc.local enabled the boot sequence to complete and the VM console to return to user prompt.
NOTE: even though EMCtrl.sh itself uses nohup and redirects standard out & error, the messages the script itself generates should be redirected as shown below.
======================= 



 # Start EM 

 cd EM_HOME/bin

 ./EMCtrl.sh start &>emctrl.log &

 sleep 2 



 # Start WebView 

cd EM_HOME 

nohup ./Introscope_WebView &>webview.log & 
=======================

 NOTE: EM_HOME should be replaced with the actual EM install directory path