|
From: Qian W. <jan...@ya...> - 2005-08-15 21:48:40
|
Leif,
I tried two ways of stopping the services
(command-line shutting down and reboot the machine), I
attached those two logs for you. Most of the time my
program won't shutdown properly if I reboot the
machine, but once in a while, it could. I also got
this error message once: "unable to write to the
EventLog due to: A device attached to the system is
not
functioning", and then my log configuration was
changed to NONE by wrapper. In the log files I sent to
you, You will see in correctshutdown.txt, lines after
Ln16 are missing in wrongshutdown.txt
I tried in my program with System.flush(),
JOptionPane hoping to invoke some dialog to prevent
the computer shutting down too soon, but none of those
worked.
I am wondering if you could add something like
some other windows programs, before you shut down the
machine, there would be a pop up window to let you
manually end the program.
Anyways, now I am tring to get some windows
scripts to run the stop command before shutting down.
Your help would be greatly appreciated.
thanks
--- Leif Mortenson <le...@ta...> wrote:
> Qian,
> The Windows Service Manager is actually rather
> rude when the system is
> being shutdown. It also ignores service dependency
> information and just
> shuts
> them all down at the same time.
>
> Could you set wrapper.debug=true and then reboot
> your machine.
> Post the resulting wrapper.conf file showing a few
> minutes before the reboot
> and then up until the machine has been rebooted.
> I should be able to tell you exactly what is
> happening from that
> information.
>
> Cheers,
> Leif
>
> Qian Wang wrote:
>
> >Sorry, I mean signalStopping(n). Anyone has an
> idea?
> >
> >thanks
> >--- Qian Wang <jan...@ya...> wrote:
> >
> >
> >
> >>Geetings, y'all,
> >> I have a question about the stopping the
> service
> >>while rebooting the mahine. My own shutting down
> >>method sleep for 10 sec, then continue to clean my
> >>working threads and other stuff. I used
> >>stopsignale(12000) in wrapper's mail class to have
> >>it
> >>wait for 12 seconds, however, I don't think it can
> >>actually wait that long, therefore my threads
> can't
> >>be
> >>shutdown properly.
> >>
> >>I've tried to use a smaller number to sleep my
> >>shutdown method, then it works fine.
> >>
> >>My guess is my machine gets shutdown before
> wrapper
> >>do
> >>its job. How do I make wrapper wait for as long as
> I
> >>want?
> >>
> >>
> >>thanks a lot!
> >>
> >>
> >>
>
>>____________________________________________________
> >>Start your day with Yahoo! - make it your home
> page
> >>http://www.yahoo.com/r/hs
> >>
> >>
> >>
> >>
> >>
> >>
>
>-------------------------------------------------------
> >
> >
> >>SF.Net email is Sponsored by the Better Software
> >>Conference & EXPO
> >>September 19-22, 2005 * San Francisco, CA *
> >>Development Lifecycle Practices
> >>Agile & Plan-Driven Development * Managing
> Projects
> >>& Teams * Testing & QA
> >>Security * Process Improvement & Measurement *
> >>http://www.sqe.com/bsce5sf
> >>_______________________________________________
> >>Wrapper-user mailing list
> >>Wra...@li...
> >>
> >>
> >>
>
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
> >
> >
>
>
>
-------------------------------------------------------
> SF.Net email is Sponsored by the Better Software
> Conference & EXPO
> September 19-22, 2005 * San Francisco, CA *
> Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects
> & Teams * Testing & QA
> Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
>
https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |