66

obarun.org

66-update

66-update is a program that should be used rarely. At upgrade/downgrade time, the inner file format used to retrieve informations of tree,service database currently in use, can differ between two versions. In this case, service databases and trees need to be rebuild to match the new format. The 66-update program makes a complete transition of trees and the live directory using a old 66 format (the one being replaced) with the new 66 format.

The goal is to ensure a smooth transition between different versions of 66 without needing a reboot.

Interface

    66-udpate [ -h ] [ -z ] [ -v verbosity ] [ -l live ] [ -d ] tree

If no tree is given, all trees of the owner (root or user) of the process will be processed. In the case of user owned trees 66-update must run separately for each user.

Exit codes

Options

Transition process

At the end of the process, the tree and the live state has not changed. Services already in use are not stopped or restarted during the transition process and match exactly the same state before and after the process.

It tries to be safe as possible and exits 111 if a problem occurs. In any case on upgrade/downgrade time, 66 tools will not work properly if the transition is not made smoothly even by the sysadmin itself. So, we prefer to crash instead of leaving an inconsistent state and let the sysadmin correct the things.