micasad status shows dead upon boot-up

  • 7010330
  • 27-Jun-2012
  • 27-Jun-2012

Environment

Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 3

Situation

Novell services which use CASA credentials will not load. 
micasad daemon shows dead upon boot-up. 
micasad service starts normal after initial boot-up.

Resolution

Need to modify the /etc/init.d/micasad startup script to use "awk" instead of "cut" command.
Changes:
Original:  MICASAD_PROC=`ps -eo pid,cmd | grep /usr/bin/micasad.exe | grep -v grep | cut -d ' ' -f1`
Replaced: MICASAD_PROC=`ps -eo pid,cmd | grep /usr/bin/micasad.exe | grep -v grep | awk '{print $1}'`

Original: MICASAD_PROC=`ps -eo pid,cmd | grep -v grep | grep /usr/bin/micasad.exe | cut -d ' ' -f2`
Replaced:MICASAD_PROC=`ps -eo pid,cmd | grep -v grep | grep /usr/bin/micasad.exe | awk '{print $2}'`

Cause

micasad is one of the first services started and if it's assigned a 3 digit PID, it would not get started properly.  This was due to the way the PID was extracted from the "ps" command.  After the initial boot-up, manually starting /etc/init.d/micasad will most likely get a larger than 3 digit PID.