(contributed by Rob Lockstone)
Resin can be configured to start automatically when the system
boots up using StartupItems. Create a directory in
/Library/StartupItems called "Resin". In that directory are two files:
# Resin Application Server
ConsoleMessage "Starting Resin"
$RESIN_HOME/bin/httpd.sh start -J-server -Xms32M -Xmx64M
ConsoleMessage "Stopping Resin"
ConsoleMessage "Restarting Resin"
Description = "Resin Application Server";
Provides = ("Resin");
Requires = ("Web Server");
OrderPreference = "None";
start = "Starting Resin";
stop = "Stopping Resin";
restart = "Restarting Resin";
StartupParameters.plist file example above requires that the
service named "Web Server", which is Apache, is started before Resin starts. If
you run Resin standalone, remove that dependency.
Resin will start automatically when your system boots.
You can stop, start and restart Resin using the following commands
from a terminal:
sudo SystemStarter start Resin
sudo SystemStarter stop Resin
sudo SystemStarter restart Resin
Since Resin is started by root, consider using the
and tags to change the effective user id of Resin:
For more info than you probably want to know about Mac OS X's boot
process and startup items, see Apple's documentation.
Copyright (c) 1998-2009 Caucho Technology, Inc. All rights reserved.
are registered trademarks of Caucho Technology, Inc.