[wpkg-users] ideas for WPKG Client 1.2

Marco Gaiarin gaio at sv.lnf.it
Tue Nov 27 17:45:55 CET 2007


Mandi! Tomasz Chmielewski
  In chel di` si favelave...

> 1. Laptop mode.
> Some of you complained that if logon delay is enabled and the server is 
> unreachable (because that client machine is a laptop unplugged from a 
> network), users have to wait for too long. This happens for several 
> reasons - trying to resolve DNS name, wrong routing etc.
> The idea with "laptop mode" is to try to reach a server for few seconds 
> (3 seconds default, configurable), and if it fails (no connection, no 
> reply etc.), discontinue further execution (skip logon delay, don't 
> execute any actions).

Offline mode sounds me as a better name.

But i think that it is not good to re-invent the wheel, insted make
WPKGClient check the exit code of -pre (and -post?) scripts and provide
some good example script.

One more fine-grained solution will be to 'code' some 'non-0 exit code'
to -pre script, as:

If exit status is:

 1 stop any subsequent actions
 2 execute -post script but not wpkg.js itself
 3 immeditely reboot
 4 start wpkg.js with /forceinstall 
 ...


-pre script are server side, so if you brake something on it it is easy
and safe to fixup.

-- 
dott. Marco Gaiarin				    GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it	  tel +39-0434-842711  fax +39-0434-842797


Easy Software Deployment >> http://wpkg.org
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list