Bug 779080 (SOA-1480)

Summary: jboss_init_solaris.sh fails to start server on Solaris 10
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Julian Coleman <jcoleman>
Component: EAPAssignee: Julian Coleman <jcoleman>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3 CP02CC: mmalina
Target Milestone: ---   
Target Release: 4.3 CP04 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1480
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Solaris 10 (11/06) Sparc SunOS atlas 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-280R
Last Closed: 2010-08-04 10:40:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
jboss_init_solaris.sh none

Description Julian Coleman 2009-09-03 15:32:18 UTC
Date of First Response: 2009-09-03 15:11:23
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/?module=issues&action=view&tid=292205
project_key: SOA

The jboss_init_solaris.sh script fails to start the server at boot time, when run as a legacy service on Solaris 10.
The log file `/var/svc/log/milestone-multi-user-server:default.log' contains:
  /etc/rc3.d/S99jboss: JBOSS_HOME[0]=/export/atlas/home/jboss/rc/jboss-soa-p.4.3.0/jboss-as: not found
  /etc/rc3.d/S99jboss: JBOSS_USER[0]=jboss: not found
  /etc/rc3.d/S99jboss: SERVER_NAME[0]=production: not found
  /etc/rc3.d/S99jboss: JBOSS_START[0]=1: not found
  /etc/rc3.d/S99jboss: JBOSS_CONSOLE[0]=: not found
so it looks like the script is being executed with /sbin/sh but the script expects bash extensions.

Note that it is possible to manually execute the script, and it will run.  It just fails on boot.

Comment 2 Julian Coleman 2009-09-03 19:15:27 UTC
Note that it runs manually if /usr/bin/bash is installed on the system.
It would be better to only use the (lack of) features provided by /sbin/sh.


Comment 3 Julian Coleman 2009-09-03 19:19:00 UTC
Help Desk Ticket Reference: Added: https://enterprise.redhat.com/issue-tracker/?module=issues&action=view&tid=292205


Comment 4 Julian Coleman 2009-09-04 09:09:20 UTC
A modified script that works on Solaris 10.  It:
  uses only shell features available in /sbin/sh.
  allows options  to be passed (e.g. -b name|ip)
  removes use of temporary files
  has minor grammar corrections
It doesn't handle an array of servers.

Comment 5 Julian Coleman 2009-09-04 09:09:20 UTC
Attachment: Added: jboss_init_solaris.sh


Comment 6 Julian Coleman 2009-09-04 09:20:35 UTC
Link: Added: This issue depends JBPAPP-2750


Comment 7 Julian Coleman 2009-09-21 14:11:17 UTC
Note, that the script attached here has had some changes made since being uploaded.
However, there may still be some further fixes to be made.  See 292205 for details.

Comment 8 Martin Malina 2009-09-22 13:56:40 UTC
Julian, could you please reupload the final version of jboss_init_solaris.sh ? Or is it not ready yet?

Comment 9 Julian Coleman 2010-01-04 14:53:28 UTC
Fixed in EAP 4.3.0.GA_CP06.
We need to import this version (or later) to the SOA 4.3 branch.


Comment 10 Fernando Nasser 2010-05-26 13:43:55 UTC
Link: Added: This issue depends JBPAPP-4392


Comment 11 Julian Coleman 2010-08-04 10:40:00 UTC
The updated script was included in EAP 4.3.0 CP08.