[
https://issues.jboss.org/browse/AS7-4015?page=com.atlassian.jira.plugin.s...
]
Leo Breuss updated AS7-4015:
----------------------------
Description:
On CentOS 6 (and maybe other Distros too), the /etc/rc.d/init.d/functions has no
executable flag set. The jboss init.d script itself sources it with ".
/etc/rc.d/init.d/functions"
{code}
ll /etc/rc.d/init.d/functions
-rw-r--r--. 1 root root 18171 Oct 7 16:01 /etc/rc.d/init.d/functions
{code}
On line 89, the supplied init script jboss-as-standalone.sh does a check if
/etc/rc.d/init.d/functions is executable.
So you might want to fix the jboss init.d script the following way:
{code:title=patch for $JBOSS_HOME/bin/init.d/jboss-as-standalone.sh|borderStyle=solid}
# diff /opt/jboss-as/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss
89c89
< if [ -x /etc/rc.d/init.d/functions ]; then
---
if [ -r /etc/rc.d/init.d/functions ]; then
{code}
was:
On CentOS 6 (and maybe other Distros too), the /etc/rc.d/init.d/functions has no
executable flag set. The jboss init.d script itself sources it with ".
/etc/rc.d/init.d/functions"
{code}
ll /etc/rc.d/init.d/functions
-rw-r--r--. 1 root root 18171 Oct 7 16:01 /etc/rc.d/init.d/functions
{code}
On line 89, the supplied init script jboss-as-standalone.sh does a check if
/etc/rc.d/init.d/functions is executable.
So you might want to fix the jboss init.d script the following way:
{code:title=$JBOSS_HOME/bin/init.d/jboss-as-standalone.sh|borderStyle=solid}
# diff /opt/jboss-as/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss
89c89
< if [ -x /etc/rc.d/init.d/functions ]; then
---
if [ -r /etc/rc.d/init.d/functions ]; then
{code}
Forum Reference:
https://community.jboss.org/thread/176251,
https://community.jboss.org/wiki/StartJBossOnBootWithLinux (was:
https://community.jboss.org/thread/176251,
https://community.jboss.org/wiki/StartJBossOnBootWithLinux)
> init.d script, jboss-as/bin/init.d/jboss-as-standalone.sh tests for *executable*
/etc/rc.d/init.d/functions
>
------------------------------------------------------------------------------------------------------------
>
> Key: AS7-4015
> URL:
https://issues.jboss.org/browse/AS7-4015
> Project: Application Server 7
> Issue Type: Bug
> Components: Documentation, Scripts
> Affects Versions: 7.1.0.Final
> Environment: CentOS 6.2 (netinstall, all default)
> Reporter: Leo Breuss
> Assignee: Brian Stansberry
> Labels: script, startup
> Fix For: 7.1.1.Final
>
>
> On CentOS 6 (and maybe other Distros too), the /etc/rc.d/init.d/functions has no
executable flag set. The jboss init.d script itself sources it with ".
/etc/rc.d/init.d/functions"
> {code}
> ll /etc/rc.d/init.d/functions
> -rw-r--r--. 1 root root 18171 Oct 7 16:01 /etc/rc.d/init.d/functions
> {code}
> On line 89, the supplied init script jboss-as-standalone.sh does a check if
/etc/rc.d/init.d/functions is executable.
> So you might want to fix the jboss init.d script the following way:
> {code:title=patch for
$JBOSS_HOME/bin/init.d/jboss-as-standalone.sh|borderStyle=solid}
> # diff /opt/jboss-as/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss
> 89c89
> < if [ -x /etc/rc.d/init.d/functions ]; then
> ---
>
if [ -r /etc/rc.d/init.d/functions ]; then
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira