• 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: restart app from command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: restart app from command line


  • Subject: Re: restart app from command line
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 2 Mar 2007 12:13:14 -0800

Hi Jeff,

On Mar 2, 2007, at 11:58 AM, Jeff Schmitz wrote:

Hello,
For the time being, I can't reach my javamonitor process because port 8086 is closed on my server's network. Is there a way to ssh in and restart a webobjects application from the command line?

You can just kill it (kill -9 pid works ;-) and wotaskd will restart it. A tad on the brutal side. Or you can add a direct action that takes a password and calls WOApplication.application().terminate(). Less brutal, but if a hacker finds it and gets the password...



Or, could I possibly start another javamonitor instance that looks at port 80? Or will that hose something up having two javamonitor's running at the same time, or having one of them accepting requests on port 80?

The "problem" is that JavaMonitor by default runs in direct connect mode on port 56789. It is far better to use this to start JavaMonitor, then use JavaMonitor to add itself (!) as a monitored application. Then stop the one running on port 56789 and set the startup scripts so that it starts nevermore. Then you can get to JM just like any other WO app. You do want to put a password on it!


Chuck

--

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-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >restart app from command line (From: Jeff Schmitz <email@hidden>)

  • Prev by Date: Re: restart app from command line
  • Next by Date: Re: restart app from command line
  • Previous by thread: Re: restart app from command line
  • Next by thread: entity relationships and userinfo
  • Index(es):
    • Date
    • Thread