Why is psshutdown hard coded into this, curiously? That seems weird to
begin with.
Mea culpa!
I sent the patches in with my customised shutdown routine set to be called
rather than the official one. Since the routine is out there, I might as
well explain why I've written it and prefer it: Most of out users come in
and turn their computers on in the morning. Packages are then synchronized
using WPKG running as a service on the machine. Some installs take a while
and not all machines have the messenger service installed. Since
suddenly rebooting a machine is a pain in the proverbial, I use psshutdown
to request a cancellable shutdown with a nice message when WPKG needs it.
I set the time to 60 seconds for the first message. 60 seconds later, if
the system is still running, I re-issue the reboot request with 59 seconds
and so it goes on. I reckon that gives a user up to 30 minutes to figure
out that the machine *really* is going to reboot and allows sufficient
time for them to complete and save any really important work. Since it
uses psshutdown (which I don't guarantee exists on a local machine) I open
it from the same share as WPKG.
That's the reasoning. Anybody who'd like to use the shutdown routine I've
written is welcome to. If the patches went in as I sent them, swapping the
names of the "reboot" and "oldreboot" subroutines should make things work
properly.
On the subject of screwups, I'm afraid it was my patch which introduced
the checking bug too. I really must test more! (I'll have a look at the
checking code and see whether there's any more work I should do there.)
Yours,
Frank
On Fri, 2006-03-17 at 22:26 +0100, Tomasz Chmielewski wrote:
Markus Ernst wrote:
Hi,
I'm using wpkg 0.9.6-test2.
I found that psshutdown is missing in the documentation:
1.Download "Psshutdown" from systernals
(_http://www.sysinternals.com/Files/PsShutdown.zip_)
2. Copy psshutdown to <server>\wpkg\psshutdown.exe
It's not a missing documentation, it's a bug introduced in 0.9.6 :(
http://bugs.wpkg.org/show_bug.cgi?id=20
It should be fixed by Monday - Tuesday.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users