From c06c68253b90670ca66f22be40ffbd198f22145f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 30 Sep 2017 13:14:20 +0000 Subject: Add doc precisions about live compiled dbs --- doc/s6-rc-compile.html | 17 +++++++++++++++++ doc/s6-rc-init.html | 4 ++++ doc/s6-rc-update.html | 5 +++++ 3 files changed, 26 insertions(+) (limited to 'doc') diff --git a/doc/s6-rc-compile.html b/doc/s6-rc-compile.html index d78e7ad..d23f071 100644 --- a/doc/s6-rc-compile.html +++ b/doc/s6-rc-compile.html @@ -374,6 +374,23 @@ instance managed by an automatically generated longrun service named s6rc-fdholder.

+

Compiled database usage

+ + + +

A complete example

diff --git a/doc/s6-rc-init.html b/doc/s6-rc-init.html index 54692bf..f3a7bb1 100644 --- a/doc/s6-rc-init.html +++ b/doc/s6-rc-init.html @@ -129,6 +129,10 @@ compiled service databases into some versioned directory, and that use. This will make it easier to create new compiled databases and switch them with s6-rc-update without having to change the s6-rc-init invocation in boot scripts. +

  • After s6-rc-init runs, compiled has become the +"live compiled database", and must not be tampered with or deleted. +The only way to free it for deletion is to replace it with another +database, via a call to s6-rc-update.
  • diff --git a/doc/s6-rc-update.html b/doc/s6-rc-update.html index 6c23975..178d299 100644 --- a/doc/s6-rc-update.html +++ b/doc/s6-rc-update.html @@ -272,6 +272,11 @@ old compiled unless more work is performed. It is recommended to keep a s6-rc-init on current, and to make current a link to the new compiled right after a s6-rc-update invocation. +
  • s6-rc-update is the only way to "free" the old compiled database +for displacement or deletion. A live compiled database must not be +tampered with. After a s6-rc-update invocation, the old database isn't +live anymore and can be moved or deleted; instead, newdb is +live.
  • -- cgit v1.2.3