> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Fix Jboss startup script for CentOS
- URL: https://kudithipudi.org/how-to-fix-jboss-startup-script-for-centos/
- Published: 2011-11-29T04:50:22.000Z
- Updated: 2011-11-29T04:50:22.000Z
- Description: Quick note for myself on fixing the default startup script provided by Jboss to work on CentOS. Thx to Shankar to finding the solution. The default...
- Author: admin
- Tags: HOWTO, Linux, Technology, Uncategorized, #wp, #wp-post, #Import 2026-08-23 02:32

Quick note for myself on fixing the default startup script provided by Jboss to work on CentOS. Thx to Shankar to finding the solution.

The default startup script (/$JBOSS\_HOME/bin/jboss\_init\_redhat.sh) that Jboss provides does not work properly in CentOS. The start option works fine, but when you try to stop Jboss, it gives you a “No JBossas is currently running” message and quits.

Here’s a quick way to fix it. Edit the jboss\_init\_redhat.sh file and replace

```
JBOSSSCRIPT=$(echo $JBOSSSH | awk ‘{print $1}’ | sed ‘s/\//\\\//g’)
```

with

```
JBOSSSCRIPT=$(echo $JBOSSSH | awk ‘{print $1}’)
```