Hi there,

On 06/06/2007, at 9:34 AM, Pascal Robert wrote:

Le 07-06-05 à 19:00, Janine Sisk a écrit :

I'm not so concerned about the legalities, as this is mostly a learning exercise. But is it possible, and has anyone documented the differences from deploying on Server? I know there has been discussion about this before, but Google isn't finding it for me.

The main difference is that Monitor and wotaskd can be started from Server Admin and launchd on Server, on OS X "Client", you can it with /System/Library/StartupItems/WebObjects. You also need to install WO on "client", deployment stuff is already installed on Server.

Note: you need to edit the startup items script as JavaMonitor/ wotaskd are disabled by default in that script. i.e., you'll find the following bit in the StartService() section. Uncomment the top two to run as root or the bottom two as some nonrootuser (e.g., appserveruser).

-----------------------------------------
####
# This set of invocations will launch wotaskd and
# (optionally) Monitor as root
#"$WOSERVICE" -appPath "$WOTASKD" >/var/log/webobjects.log 2>&1 &

# Uncomment the next line to start Monitor as root at boot time
#"$WOSERVICE" -appPath "$WOJAVAMONITOR" -WOPort 56789 - WOAutoOpenInBrowser NO >>/var/log/webobjects.log 2>&1 &
####

####
# This set of invocations will launch wotaskd and
# (optionally) Monitor as 'nonrootuser'
# Change 'nonrootuser' to whatever account you want wotaskd to run as.
#
#/usr/bin/su nonrootuser -c "$WOSERVICE" -appPath "$WOTASKD" >/var/ log/webobjects.log 2>&1 &
#
#/usr/bin/su nonrootuser -c "$WOSERVICE" -appPath "$WOJAVAMONITOR" - WOPort 56789 -WOAutoOpenInBrowser NO >> /var/log/webobjects.log 2>&1 &
#
####
-----------------------------------------

You'll want to add -WOHost localhost after any of the "$WOTASKD" or "$WOJAVAMONITOR" args. e.g., /usr/bin/su nonrootuser -c "$WOSERVICE" -appPath "$WOTASKD" -WOHost localhost >/var/log/webobjects.log 2>&1 &

Then in the Properties files for your apps have:
WOHost=localhost

Also note that in future installs of WO the above will probably go away in favour of a LaunchDaemon plist (as is the case on Mac OS X Server already I believe).

Naturally this is probably a thread worth taking to the deployment list...

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to