/etc/rc.d/init.d/ is the obvious way to start up a server at boot time.
But, I don't think you want to just simply run jboss out of a script there
because it would run as root. I haven't tried this, but maybe the
script could do an 'su'? Surely someone on this list has set it up...
Russ
Ken Jenks <[EMAIL PROTECTED]> on 07/02/2000 10:52:48 PM
Please respond to "jBoss" <[EMAIL PROTECTED]>
To: jBoss <[EMAIL PROTECTED]>
cc: (bcc: Russell Pridemore/IC/Kyrus)
Subject: Re: [jBoss-User] Linux: How do I set up jBoss to restart every time?
Ken Jenks asked:
> > What's the best way to set up jBoss to restart every time I reboot the
> > server? I'm using Redhat Linux 6.2.
Aaron Mulder <[EMAIL PROTECTED]> answered:
> Well, I haven't actually tried this, but based on my experience
>with Tomcat it should be possible.
> Create a script in /etc/rc.d/init.d/ called jboss or something.
>You can model it on most any of the ones in there. On start, run the
>run.jar in the background, redirecting output to files in /var/log
>or something. On stop, run the stop.jar. On restart, run stop then
>start. Then add a symlink named S97jboss to /etc/rc.d/rc2.d,
>/etc/rc.d/rc3.d, and /etc/rc.d/rc4.d. Add one called K03jboss to
>/etc/rc.d/rc1.d and /etc/rc.d/rc6.d.
> I can put together some samples if necessary.
The way I understand it, the Linux "chkconfig" command should be able to do
the stuff with links in all of the different /etc/rc.d/rc?.d/ folders,
based on the runlevel. All I have to do is to come up with the script in
/etc/rc.d/init.d/ called jboss. I tried to model one on httpd, but I can't
figure out how to start/stop jBoss with that syntax, even with your
generous hints.
I appreciate your offer to put together some samples. I'll add them to the
documentation bug, #133.
-- Ken Jenks, http://abiblion.com/
Tools for reading.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]