Bug 779080 (SOA-1480) - jboss_init_solaris.sh fails to start server on Solaris 10
Summary: jboss_init_solaris.sh fails to start server on Solaris 10
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-1480
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: EAP
Version: 4.3 CP02
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.3 CP04 GA
Assignee: Julian Coleman
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-03 15:32 UTC by Julian Coleman
Modified: 2010-08-04 10:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
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


Attachments (Terms of Use)
jboss_init_solaris.sh (6.15 KB, application/x-shellscript)
2009-09-04 09:09 UTC, Julian Coleman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-1480 0 Minor Closed jboss_init_solaris.sh fails to start server on Solaris 10 2016-09-06 09:27:13 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.