History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CIB-1383
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: jason
Reporter: jason
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Pulse

Init script fails on OSX 10.4

Created: 20/Feb/08 01:38 AM   Updated: 16/Jun/08 01:46 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.7


 Description  « Hide
From support@:

"""Inside init.sh for pulse 1.2.43, there's this line which fails on MacOS 10.4:

pidtest=`$PSEXE -p $pid -o args | grep "$WRAPPER_CMD" | tail -1`

Here's what it prints:

Starting Pulse Agent...
ps: args: keyword not found
ps: no valid keywords
Removed stale pid file: /usr/local/build/pulse-agent-1.2.43/bin/./pulse-agent.pid

The problem appears to be that 'args' is not a valid column name for ps. The 'command' column appears to be the MacOS X equivalent (and also works on Ubuntu Linux, for what it's worth). So the following line works marvelously on MacOS 10.4:

pidtest=`$PSEXE -p $pid -o command | grep "$WRAPPER_CMD" | tail -1`"""

There are two complications here:

1) Compatibility: "command" could be unsupported on some ps variant, and it is hard to test older ones
2) A change will interfere with agent upgrades, so we can't do it in 1.2.

 All   Comments   Change History      Sort Order:
jason - 16/Jun/08 01:46 PM
Fixed in change 4477.