Unable to start or stop sentinel using rcsentinel

  • 7017616
  • 18-May-2016
  • 18-May-2016

Environment


NetIQ Sentinel 7.4.1 Sentinel Server

Situation

Seeing the error /usr/sbin/rcsentinel: line 30: syntax error: unexpected end of file.

Unable to start or stop sentinel using rcsentinel.  



Resolution

1. go to /usr/sbin

2. Use vi to edit the rcsentinel script file.

For example:  vi rcsentinel

3. look for the following lines. 

export INVOKING_COMMAND="$0"
if [ $(id -u novell ) -ne 0 ]
"${APP_HOME}/bin/server.sh" "$@"


4. add the following lines back to the script right below the lines from step 3.

else
/bin/su - novell -c "${APP_HOME}/bin/server.sh "$@""
fi

For example:  


export INVOKING_COMMAND="$0"
if [ $(id -u novell ) -ne 0 ]
then
"${APP_HOME}/bin/server.sh" "$@"
else
/bin/su - novell -c "${APP_HOME}/bin/server.sh "$@""
fi

5. restart sentinel. 

Cause

This issue occurs after upgrading to Sentinel 7.4.1 on a Sentinel install with a non-default install directory.

The last few lines of the rcsentinel script are removed. One of those lines contains the call to the server.sh which is the command used to start and stop sentinel.