Below are steps to make ActiveMQ a Linux Daemon on Red Hat 4 ES.
It's based on this article.
Alternatively, you could also use the Java Service Wrapper implementation, refer to the Java Service Wrapper Page for more details.
Sun Java JDK
1. Install Sun Java JDK on /opt/java/ directory.
2. Create a shortcut to JDK directory:
1. Install ActiveMQ on /opt/activemq/ directory.
2. Make ActiveMQ startup and shutdown scripts executable:
ActiveMQ as Linux Daemon
1. Create activemq user:
2. Create ActiveMQ startup script /home/activemq/activemqstart.sh with the
3. Make /home/activemq/activemqstart.sh executable:
4. Create ActiveMQ shutdown script /home/activemq/activemqstop.sh with the
5. Make /home/activemq/activemqstop.sh executable:
6. Create ActiveMQ Linux service configuration script /etc/init.d/activemq
7. Enable ActiveMQ service configuration as Linux Daemon:
8. Restart the server.
Note: activemq-data is being created in "/" root directory. I have to