The init-script is not started during reboot
Hi,
I have an init-script under /ect/init.d called jboss5. I've added this to the chkconfig. This means, if I reboot the machine, this init-script will be started. But it doesn't. I have to start it manually. What could be the reason? |
did you make it executable? ( chmod 755 )
does it start with a shebang? ( #!/bin/sh ) do you have appropriate symlinks in /etc/rc*.d? |
Does it have the correct ownerships? (& everything Firerat asked)
Run Code:
chkconfig --list jboss5 |
Quote:
Yes, it beginns with #!/bin/sh It has appropriate symlinks in /etc/rc3.d |
Quote:
chkconfig --list jboss5 shows: Code:
# chkconfig --list jboss5 |
Is it dependent on other service(s)?
for instance, does it need a working network connection and if so it is 'ordered' to start _after_ required service(s) |
@thomas2004ch: Are you aware of this page: StartJBossOnBootWithLinux
|
Quote:
|
Quote:
I know this page. In the fact there is Jboss5 and Jboss7 on this machine. The init-script starting Jboss7 works fine. I wonder why the init-script for Jboss5 not. But as I said, when I start it manually there is no problem. |
Quote:
If jboss is started during the boot process it could be that some services that jboss relies on aren't yet started. Have a look at the link I posted, it shows that the jbos init-script has a high number, this to make sure other services are up and running before jboss is started. |
The init-script for Jboss5 has following code at the beginning:
Code:
#!/bin/sh Code:
#!/bin/sh |
I just noticed this thread you posted: init-script for Solaris
Question: Is the above done on Linux or Solaris? |
Sorry for the double post (slow or hanging LQ connections, been this way for over a week now).
|
Quote:
My init-script here is for RedHat LINNUX. It's quite different with that of Solaris. |
The header in the init script doesn't necessarily reflect the correct init-script name. Can you post the output of:
Code:
ls -l /etc/rc*d/*jboss* |
All times are GMT -5. The time now is 03:18 AM. |