« Posts tagged service

Set up Jboss 5.1 as a service

Run JBoss not as root

First off, you’ll need to add a user named jboss to your system. Do this so you wont have to run jboss as root. Running anything as root is usually dangerous and is usually never recommended. Its very easy to break stuff if you don’t know what you’re doing. To add jboss to the sudoers file, open it by doing the following:

[root@bedrock ~]# vi /etc/sudoers

Scroll down some then add this entry somewhere near where the root user is listed:

## Services
Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig
...
...
...
## Allow root to



[Read the rest]