Daemon User
I'm a Linux noob, but have been working with JBoss for a while now on windows. I am trying to follow JBoss's doc on getting the server to run as a service. I am attempting to create a user for this daemon. I believe I have it correct, yet when I attemp to run the service script I get the following:
[root@localhost opt]# /opt/jboss-4.0.1sp1/bin/jboss_init_redhat.sh start CMD_START = cd /opt/jboss-4.0.1sp1/bin; /opt/jboss-4.0.1sp1/bin/run.sh -c all su: warning: cannot change directory to /opt/jboss-4.0.1sp1/bin: Permission denied This account is currently not available. My thought is that this has something to do with the jbossd user account that I created. From etc/passwd: jbossd:x:501:3:JBoss Server:/opt/jboss-4.0.1sp1/bin:/sbin/nologin Thanks, T |
What are the permissions on /opt/jboss-4.0.1sp1/bin -- you can do "ls -ld /opt/jboss-4.0.1sp1/bin" (no quotes) to see them.
|
Thanks for the quick reply. I have been messing with chown and chmod on these dirs with -R. Here's the latest:
drwxr-x--- 2 jbossd root 4096 Apr 7 17:30 /opt/jboss-4.0.1sp1/bin |
I figured out that my jboss user was the problem. Now, however I still can't get JBoss started. I keep getting:
[root@localhost init.d]# service jbossd start CMD_START = cd /usr/local/jboss-4.0.1sp1/bin; /usr/local/jboss-4.0.1sp1/bin/run.sh -c all That's all. Nothing starts. Just this output. Thanks |
Normally when daemons start they don't print any sort of messages. You can do ps aux and look for the JBoss process to see if it's running. You can use netstat too to make sure it's listening on the correct port. If it's not, you should probably look at the logfiles the application generates. There may also be a verbose output option you can start it with that might give a better clue about the problem -- you'll have to consult the documentation.
|
Unfortunately, there is little documentation other than the script provided by JBoss. I've done quite a bit of googling on this topic with little results. ps aux does not show it running. netstat does not show it listening. The JBoss logs do not seem to have been touched. I don't think it's doing anything.
The output is coming from the JBoss start up file, but that seems to be all it's doing. Below is the script provided by JBoss with my alterations: Code:
#!/bin/sh |
I had the same problem.
The solution to me was to change this: Code:
JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c all"} Code:
JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh"} |
-->I figured out that my jboss user was the problem. Now, however I still can't get JBoss started. I keep getting:
I am having the same problem "This account is not currently available". Can you explain what was actually done to fix the jboss user on your system? |
Hi Guys,
I have got mine working. - CENTOS 4.4, jdk.1.5.0_08, jboss-4.0.4.GA Simplied answer is: I installed jboss in /opt ie /opt/jboss-4.0.4.GA Copy the jboss_init_redhat.sh as jboss in init.d # cp /opt/jboss-4.0.4.GA/bin/jboss_init_redhat.sh /etc/init.d/jboss Code:
Change the following lines in the jboss goto Server Settings->Services, enter root password. goto Actions->Add Service enter jboss click on the checkbox for jboss, save. Reboot the server. Give enough time for the jboss to complete it's startup and test. Enjoy |
Please let me know if it works for you.
|
All times are GMT -5. The time now is 01:47 AM. |