• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: The Official What-I-Did-To-Run-5.3-On-Leopard Post
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The Official What-I-Did-To-Run-5.3-On-Leopard Post


  • Subject: Re: The Official What-I-Did-To-Run-5.3-On-Leopard Post
  • From: Art Isbell <email@hidden>
  • Date: Sun, 28 Oct 2007 11:44:59 -1000

On Oct 28, 2007, at 9:23 AM, Mike Schrag wrote:

* Create /Library/LaunchDaemons/com.apple.webobjects.wotaskd.plist with:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Disabled</key>
        <false/>
        <key>GroupName</key>
        <string>appserverusr</string>
        <key>Label</key>
        <string>com.apple.webobjects.wotaskd</string>
        <key>OnDemand</key>
        <false/>
        <key>Program</key>
        <string>/System/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd</string>
        <key>ProgramArguments</key>
        <array>
                <string>wotaskd</string>
                <string>-WOPort</string>
                <string>1085</string>
        </array>
        <key>ServiceIPC</key>
        <false/>
        <key>UserName</key>
        <string>appserver</string>
</dict>
</plist>

* Create /Library/LaunchDaemons/com.apple.webobjects.womonitor.plist with:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Disabled</key>
        <false/>
        <key>GroupName</key>
        <string>appserverusr</string>
        <key>Label</key>
        <string>com.apple.webobjects.womonitor</string>
        <key>OnDemand</key>
        <false/>
        <key>Program</key>
        <string>/System/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor</string>
        <key>ProgramArguments</key>
        <array>
                <string>JavaMonitor</string>
                <string>-WOPort</string>
                <string>56789</string>
        </array>
        <key>ServiceIPC</key>
        <false/>
        <key>UserName</key>
        <string>appserver</string>
</dict>
</plist>

The Tiger WO startup item script logged standard error and out to /var/log/webobjects.log, but launchd swallows this output by default.  To mimic the Tiger WO startup item behavior using the above launchd config files, add the following keys and values:

<key>StandardOutPath</key>
<string>/var/log/WebObjects/webobjects.log</string>
<key>StandardErrorPath</key>
<string>/var/log/WebObjects/webobjects.log</string>

Because /var/log isn't writable by appserver, the user under which wotaskd and JavaMonitor run, /var/log/webobjects.log can't be created by wotaskd or JavaMonitor.  I suppose that you could

sudo touch /var/log/webobjects.log
sudo chown appserver:appserverusr /var/log/webobjects.log

but for me, it was safer to

sudo mkdir /var/log/WebObjects 
sudo chown appserver:appserverusr /var/log/WebObjects

which will then allow wotaskd and JavaMonitor to create and write /var/log/WebObjects/webobjects.log whenever necessary without manual intervention.

Aloha,
Art

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >WebObjects 5.4 is out. (From: Q <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: Mike Schrag <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: Mike Schrag <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: "Jerry W. Walker" <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: Mike Schrag <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: "Jerry W. Walker" <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: Michael Halliday <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: Mike Schrag <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: Michael Halliday <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: Michael Halliday <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: Art Isbell <email@hidden>)
 >Re: WebObjects 5.4 is out. (From: Art Isbell <email@hidden>)
 >The Official What-I-Did-To-Run-5.3-On-Leopard Post (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: WOApplication.createRequest 5.3 and 5.4
  • Next by Date: Documentation : call for help
  • Previous by thread: Re: The Official What-I-Did-To-Run-5.3-On-Leopard Post
  • Next by thread: Re: The Official What-I-Did-To-Run-5.3-On-Leopard Post
  • Index(es):
    • Date
    • Thread