Re: Replacing JavaMonitor and wotaskd with Wonder's ones
Re: Replacing JavaMonitor and wotaskd with Wonder's ones
- Subject: Re: Replacing JavaMonitor and wotaskd with Wonder's ones
- From: Pascal Robert <email@hidden>
- Date: Sun, 17 Oct 2010 07:37:35 -0400
Personnaly, I wouldn't change the versions in /System since Apple installers might replace with their own versions. Apple don't like having non-Apple stuff in /System and sometimes they disabled it in a OS X update.
What I do in those situations :
- Drag the builds from Wonder and put them in /Library/WebObjects/JavaApplications
- chown -R appserver:appserveradm /Library/WebObjects/JavaApplications
- stop Apple versions of the deployment stuff
- sudo launchctl stop com.apple.webobjects.JavaMonitor
- sudo launchctl stop com.apple.webobjects.wotaskd
- modify the launchctl script so that the path to the executable goes to /Library/WebObjects/JavaApplications
- start the launchctl scripts
- sudo launchctl start com.apple.webobjects.JavaMonitor
- sudo launchctl start com.apple.webobjects.wotaskd
The other advantages is that you can switch back to the Apple versions just by changing the launchctl scripts.
I'm running the Wonder versions of 4 servers (all CentOS Linux boxes) and it's super stable.
> Hi Simon,
>
> Thank you very much! Seems to be quite a detailed manual. I shall do it on a test server and see how it goes. Will let you know the findings soon.
>
> Farrukh
>
> On 2010-10-17, at 1:43 PM, Simon wrote:
>
>> this is completely untested....
>>
>> # Presuming you're deploying on standard mac os layout
>>
>> # Move the apple ones out of the way
>> cd /System/Library/WebObjects/JavaApplications
>> mv JavaMonitor.woa JavaMonitor.woa.apple.version
>> mv wotaskd.woa wotaskd.woa.apple.version
>>
>> # Get the WOnder versions and unpack tem
>> wget http://webobjects.mdimension.com/hudson/job/Wonder54/lastSuccessfulBuild/artifact/dist/JavaMonitor.woa.tar.gz
>> -O /System/Library/WebObjects/JavaApplications/JavaMonitor.woa.tar.gz
>> tar -zxf /System/Library/WebObjects/JavaApplications/JavaMonitor.woa.tar.gz
>> -C /System/Library/WebObjects/JavaApplications/WODeployment/
>> rm /System/Library/WebObjects/JavaApplications/WODeployment/JavaMonitor.woa.tar.gz
>> wget http://webobjects.mdimension.com/hudson/job/Wonder54/lastSuccessfulBuild/artifact/dist/wotaskd.woa.tar.gz
>> -O /System/Library/WebObjects/JavaApplications/wotaskd.woa.tar.gz
>> tar -zxf /System/Library/WebObjects/JavaApplications/WODeployment/wotaskd.woa.tar.gz
>> -C /System/Library/WebObjects/JavaApplications/WODeployment/
>> rm /System/Library/WebObjects/JavaApplications/WODeployment/wotaskd.woa.tar.gz
>>
>> # Permissions
>> sudo chown -R appserver:appserveradm /System/Library/WebObjects/JavaApplications
>> sudo chmod -R 755 /System/Library/WebObjects/JavaApplications
>>
>> # if you've done anything funky with your JavaMonitor / wotaskd
>> properties you will need copy that funkiness into the new
>> JavaMonitor/wotaskd properties
>>
>> # Presuming you have launchd scripts
>> sudo launchctl restart com.apple.webobjects.wotaskd
>>
>> ... and it should pick up where you left off.
>>
>> simon
>>
>>
>>
>> On 17 October 2010 10:42, Farrukh Ijaz
>> <email@hidden> wrote:
>>> Dear Super Gurus!
>>>
>>> I want to use Wonder version of JavaMonitor and wotaskd. What is the recipe with minimum downtime to replace the existing JavaMonitor and wotaskd.
>>>
>>> Note: Keeping in mind there are dozens of applications already running on the servers and the JavaMonitor is also secured with the password.
>>>
>>> Thanks in advance,
>>>
>>> Farrukh _______________________________________________
>>> 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
>>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
_______________________________________________
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