openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Info: Startup Script
Date Thu, 09 Aug 2012 15:19:24 GMT
hmm,

why catalina.sh run? why not start? and why not using catalina.sh stop for
shutdown?

- Romain


2012/8/9 exabrial <exabrial+openejb@gmail.com>

> This should probably go on the wiki... but I don't know where. Anyway,
> Ubuntu
> includes a 'better' way of starting services at boot. It's called upstart,
> and the scripts are far more human readable. This same script can also be
> used to run vanilla Tomcat.
>
> /etc/init/tomee.conf
>
>
> description "Apache TomEE Server"
>
> # Make sure the file system and network devices have started before
> # we begin the daemon
> start on (filesystem and net-device-up IFACE!=lo)
>
> # Stop the event daemon on system shutdown
> stop on shutdown
>
> # Respawn the process on unexpected termination
> respawn
>
> env HOME=/home/tomee
>
> # The meat and potatoes
> exec sudo -u tomee
> /home/tomee/apache-tomee-webprofile-1.0.0/bin/catalina.sh
> run
>
>
>
> This script is loosely based on a lot of internet searches, so credit goes
> to the internet.
> The script assumes the server will run as the user tomee and that the
> server
> is installed to /home/tomee
> To actually start/stop the server, simply type *sudo service tomee
> [start|stop|restart]*
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Info-Startup-Script-tp4656753.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message