[wpkg-users] Reboot command

Rainer Meier r.meier at wpkg.org
Wed Jun 17 11:55:50 CEST 2009


Hi Dan,

ds10025 at cam.ac.uk wrote:
> Morning
> 
> 
> What command or syntex to I use to set WPKG to reboot once only.
> 
> Eg
> 
>    Install package
>    Reboot once only
>    Continue to install packages.

WPKG always just reboots once only. After reboot WPKG starts over with the
synchronization.

There are multiple ways to specify a reboot:

- On package level:
Use the reboot= attribute of the package.

Valid values: true: reboot
immediately after package actions have been executed
false: do not reboot after executing commands
postponed: reboot after all packages have been
installed (not after this one but schedule reboot to


- On command level (exit-code based: <exit code="x" reboot="postponed" />):

Valid values: -
true: Reuire immediate reboot after this command. -
delayed: Schedule reboot after execution of all
commands has been finished (after-package reboot) -
postponed: Schedule reboot after execution of all
packages (after-wpkg reboot)



After each command WPKG checks (using the specified checks) if the software is
installed properly. If it is (checks are true) then it's added to the local
wpkg.xml. If not, then its not.
If WPKG keeps rebooting your client (trapped in reboot loop) then it's most
likely that your install commands fail to install the package in a way that the
checks evaluate true. For example if you specify an uninstall check for "test"
and "test" is never installed but you still use reboot=true, then WPKG will
reboot the machine in the hope that this entry will appear on next reboot. If it
does not then it will try again to install it using your commands. If your
commands never finish to install the package, then this could keep your machine
rebooting.

br,
Rainer



More information about the wpkg-users mailing list