Commit 042b49e6 authored by Eric Vidal's avatar Eric Vidal 💬

Merge branch 'dev' of framagit.org:Obarun/66 into dev

parents f6cd635e 459c45ca
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en" />
<title>The 66 Suite: 66-update</title>
<meta name="Description" content="Detailed documentation for the 66-update command which is part of the 66 software suite" />
<meta name="Keywords" content="66 command 66-update tree supervision format upgrade service" />
<!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
</head>
<body>
<p>
<a href="index.html">66</a><br />
<a href="//obarun.org/">www.obarun.org</a>
</p>
<h1>66-update</h1>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en" />
<title>The 66 Suite: 66-update</title>
<meta name="Description" content="Detailed documentation for the 66-update command which is part of the 66 software suite" />
<meta name="Keywords" content="66 command 66-update tree supervision format upgrade service" />
<!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
</head>
<body>
<p>
<a href="index.html">66</a><br />
<a href="//obarun.org/">www.obarun.org</a>
</p>
<h1>66-update</h1>
<p>
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.
......@@ -26,50 +26,51 @@
</p>
<p>
The goal is to ensure a smooth transition between different versions of 66 without needing a reboot.
The goal is to ensure a smooth transition between different versions of 66 without needing a reboot.
</p>
<h2>Interface</h2>
<pre>
66-udpate [ -h ] [ -v <em>verbosity</em> ] [ -c ] [ -l <em>live</em> ] <em>tree</em>
</pre>
<h2>Interface</h2>
<pre>
66-udpate [ -h ] [ -v <em>verbosity</em> ] [ -c ] [ -l <em>live</em> ] <em>tree</em>
</pre>
<p>
If no tree is given, all trees of the owner of the process will be processed.
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.
</p>
<h2>Options</h2>
<ul>
<li>
<tt><b>-h</b></tt> : print this help.
</li>
<h2>Options</h2>
<ul>
<li>
<tt><b>-h</b></tt> : print this help.
</li>
<li>
<tt>-v&nbsp;<em>verbosity</em>&nbsp;</tt>: increases/decreases
the verbosity of the command.
<tt>1(Default)</tt>: Only print error messages.
<tt>2</tt>: Also print warning messages.
<tt>3</tt>: Also print tracing messages.
<tt>4</tt>: Also print debugging messages.
</li>
<li>
<tt><b>&#8209;l&nbsp;<em>live</em></b></tt> : an absolute path. Send the signal to a <em>scandir</em> at <em>live</em>. Default is <tt>%%livedir%%</tt>. The default can also be changed at compile time by passing the <tt>&#8209;&#8209;livedir=<em>live</em></tt> option to <tt>./configure</tt>. Should be available within a writable filesystem - likely a RAM filesystem.
</li>
<tt>1(Default)</tt>: Only prints error messages.
<tt>2</tt>: Also prints warning messages.
<tt>3</tt>: Also prints tracing messages.
<tt>4</tt>: Also prints debugging messages.
</li>
<li>
<tt><b>&#8209;l&nbsp;<em>live</em></b></tt> : an absolute path. Sends the signal to a <em>scandir</em> at <em>live</em>. Default is <tt>%%livedir%%</tt>. The default can also be changed at compiling time by passing the <tt>&#8209;&#8209;livedir=<em>live</em></tt> option to <tt>./configure</tt>. Should be available within a writable filesystem - likely a RAM filesystem.
</li>
<li>
<tt>-c&nbsp;</tt>&nbsp;: enable colorization.
</li>
</ul>
</li>
</ul>
<h2>Transition process</h2>
<ul>
<li>
It determines if the tree is already initialized. if it is, it
+ makes a copy of the current database on a temporary directory and
+ switches the database to it.
It determines if the tree is already initialized. In such case, it
makes a copy of the current database on a temporary directory and
switches the database to it.
</li>
<li>
It saves the current state of the tree (current,enabled,...).
......@@ -79,13 +80,13 @@
</li>
<li>
It creates the tree with <tt><a href="66-tree.html">66-tree -n(cEa)</a></tt> command,
options depending on the saved state.
reproducing the options of the saved state.
</li>
<li>
It enables the service(s) previously declared on the <em>tree</em>.
</li>
<li>
It switch the current database to the newly created by the enable process.
It switches the current database to the newly created database by the "enable" process.
</li>
</ul>
<p>
......@@ -96,8 +97,8 @@ before and after the process.
<p>
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
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.
</p>
</body>
</html>
</p>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment