openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From exabrial <>
Subject Info: Startup Script
Date Thu, 09 Aug 2012 15:11:30 GMT
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.


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

env HOME=/home/tomee

# The meat and potatoes
exec sudo -u tomee /home/tomee/apache-tomee-webprofile-1.0.0/bin/

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

View this message in context:
Sent from the OpenEJB User mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message