• 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: Tiger: wotaskd exits code 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tiger: wotaskd exits code 1


  • Subject: Re: Tiger: wotaskd exits code 1
  • From: Sacha Mallais <email@hidden>
  • Date: Thu, 12 May 2005 10:15:35 -0700

On May 12, 2005, at 7:38 am, Tom Woteki wrote:

Thanks for the help. Please see below.
Tom

On May 11, 2005, at 6:51 PM, Sacha Mallais wrote:

Under the kitty before Tiger, you had to have the setuid bit of wotaskd set:
-rwsr-xr-x 1 appserve appserve 10K 13 Sep 02:46:27 2003 wotaskd
  ^ this "s" means setuid


Here is my current setup:
drwxr-xr-x   6 appserve  appserve  204 May 10 19:08 wotaskd.woa
-rwsr-sr-x    1 appserve  11051 Mar 29 00:24 wotaskd

Good: both setuid and setgid are set.


Can you launch it from the command line? Can you launch it as the appserver user?

Yes I can launch from the command line (I get no error exit code anyway) but this does not make launchd aware of it. 
With the above settings I can execute:
sudo ./wotaskd -WOPort 34567
I can then access wotaskd at the specified port.


What happens when you do
sudo -u appserver ./wotaskd -WOPort 34567


you can look in /Library/LaunchAgents or /Library/LaunchDaemons and see the XML startup file for wotaskd. Try posting that.

In the following, user is root and launchd launches wotaskd successfuly. If I change user to "appserver" and group to "appserverusr" wotaskd exits with error code 1 and launchd gives up after 10 attempts.

What was in there originally?


<?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>wheel</string>
    <key>Label</key>
    <string>com.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>root</string>
</dict>
</plist>


This looks fine, the only thing I can't see is where the output is supposed to go. There's a good possibility that that is the problem.


sacha


-- Sacha Michel Mallais President / Developer Extraodinaire Global Village Consulting Inc. http://www.global-village.net/ The bird of paradise alights only upon the hand that does not grasp.

_______________________________________________
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: 
 >Tiger: wotaskd exits code 1 (From: Tom Woteki <email@hidden>)
 >Re: Tiger: wotaskd exits code 1 (From: Chuck Hill <email@hidden>)
 >Re: Tiger: wotaskd exits code 1 (From: Tom Woteki <email@hidden>)
 >Re: Tiger: wotaskd exits code 1 (From: Sacha Mallais <email@hidden>)
 >Re: Tiger: wotaskd exits code 1 (From: Tom Woteki <email@hidden>)

  • Prev by Date: Re: Image resizing in app -> Sudden death
  • Next by Date: Re: cache in memory
  • Previous by thread: Re: Tiger: wotaskd exits code 1
  • Next by thread: Supports for J2EE
  • Index(es):
    • Date
    • Thread