Hi!

From what I learned, the file is always read and written by wotaskd. Monitor will ask wotaskd for it's contents, and send update commands to wotaskd in a form of an http request with a huge XML block in it.

wotaskd seems to write this file in many occasions, including just before terminating.

I looked at Anjo's code, but I couldn't find anything that helped me on this, but I may have missed something.

I thought about changing wotaskd to support a SIGHUP signal, like many UNIX deamons do, instructing it to reload the settings, but I don't have time for that right now, although from what I understood the relationship between wotaskd and Monitor is very tricky in terms of data syncing.

<rant>Sometimes I would like Apple to go the UNIX-way of things, instead of being a little snobbish with all this GUI-centric stuff.</ rant> /me smiles and do the thumbs up, Conan O'Brien way...

  Yours

Miguel Arroz



On 2009/01/14, at 02:35, Chuck Hill wrote:


On Jan 1, 2009, at 1:49 PM, Miguel Arroz wrote:

Hi!

I'm trying to improve the support for rolling updates. This is what I want to happen when I deploy:

1) The new app is build with the SVN revision automatically appended to it's name. 2) SiteConfig.xml is updated by the build script to reflect the new name. 3) Manually use WOMonitor to launch new instances and set the old ones to die when no more sessions exist.

Step 1 is done.

My problem is with step 2. If I try to change that file manually, WOMonitor will reset it to the old values, and not reflect the changes.

What if you don't have it open in a browser window? Are you writing a syntax error into the file?


What's the best way to solve this? Is there any way I can force monitor to reload the settings? Does killing and relauching monitor does the trick? Is that safe for the deployed environment?


JavaMonitor is (mostly) an editor for that file. It should not make any difference if you stop and restart it. Or don't run it at all.

Anjo added some things to the JavaMonitor in Wonder that may be of use to you.


Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects- dep...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/arroz%40guiamac.com

This email sent to ar...@guiamac.com

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

This email sent to arch...@mail-archive.com

Reply via email to