[wpkg-users] Psshutdown / Hardcoded Link

rl201 rl201 at cam.ac.uk
Sat Mar 18 19:42:10 CET 2006

> 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 

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.)



> 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.

wpkg-users mailing list
wpkg-users at lists.wpkg.org

More information about the wpkg-users mailing list