Skip navigation
3417 Views 6 Replies Latest reply: Nov 8, 2008 8:53 PM by William Li RSS
Bronze 10 posts since
Nov 20, 2006
Currently Being Moderated

Sep 13, 2007 1:39 PM

Auto restart a plugin?

 

Is it possible to have an automatic restart of a plugin? maybe with a cron job?

 

 

Any ideas?

 

 

  • slushpupie KeyContributor 776 posts since
    Jan 27, 2006
    Currently Being Moderated
    Sep 13, 2007 2:30 PM (in response to Chris Brems)
    Re: Auto restart a plugin?

    Without looking at the source this is only a guess, but-

     

    the plugin gets "upgraded" automatically when you drop a new jar file in the plugins directory.  Perhaps just "touch plugin.jar" would force such an update? Might be worth a test

  • LG KeyContributor 5,935 posts since
    Dec 13, 2005
    Currently Being Moderated
    Sep 14, 2007 6:09 AM (in response to Chris Brems)
    Re: Auto restart a plugin?

    Hi,

     

    you could create a new thread within your plugin which restarts it every n hours if you want to do this ... it may be a quite interesting task making sure that also the restart thread terminates successfully.

     

    LG

    • slushpupie KeyContributor 776 posts since
      Jan 27, 2006
      Currently Being Moderated
      Sep 14, 2007 7:32 AM (in response to LG)
      Re: Auto restart a plugin?

      I guess the question then is, are you trying to restart a plugin you

      wrote? Or a different plugin?

       

      Also, what is happening that you need to restart the plugin? Sounds like

      there might be another issue going on.

        • LG KeyContributor 5,935 posts since
          Dec 13, 2005
          Currently Being Moderated
          Sep 15, 2007 9:35 AM (in response to Chris Brems)
          Re: Auto restart a plugin?

          Hi,

           

          see Broadcast form command line, I did extend the broadcast script a little bit and you may want to modify it to your needs. I think that this is a very nice way to restart the plugin using cron.

           

          One should monitor also the STDOUT log file and look for "Starting Enterprise Server" to make sure that the restart was really successful.

           

          LG

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points