From f9940bb7d1a6ce7d7772e8cbdbbd55a321cc5c18 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 8 Oct 2017 15:39:57 +0000 Subject: Add -s to s6-rc-init; prepare for 0.3.0.0 --- NEWS | 6 ++- doc/index.html | 2 +- doc/s6-rc-init.html | 11 ++++- doc/upgrade.html | 4 +- package/deps.mak | 8 +-- package/info | 2 +- src/include/s6-rc/s6rc-servicedir.h | 6 +-- src/include/s6-rc/s6rc-utils.h | 3 ++ src/libs6rc/deps-lib/s6rc | 2 + src/libs6rc/s6rc_livedir_suffix.c | 19 +++++++ src/libs6rc/s6rc_livedir_suffixsize.c | 24 +++++++++ src/libs6rc/s6rc_read_uint.c | 1 + src/libs6rc/s6rc_servicedir_manage.c | 16 +++--- src/libs6rc/s6rc_servicedir_unsupervise.c | 10 ++-- src/s6-rc/s6-rc-init.c | 34 ++++++++----- src/s6-rc/s6-rc-update.c | 82 ++++++++++++++++++------------- src/s6-rc/s6-rc.c | 39 +++++++++++---- 17 files changed, 192 insertions(+), 77 deletions(-) create mode 100644 src/libs6rc/s6rc_livedir_suffix.c create mode 100644 src/libs6rc/s6rc_livedir_suffixsize.c diff --git a/NEWS b/NEWS index 08f2e2d..a935c54 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,12 @@ Changelog for s6-rc. -In 0.2.2.0 +In 0.3.0.0 ---------- + - s6-rc-init now takes a -s option that adds a suffix to the symbolic links +created in the scandir to manage longruns. This allows the user to use the +same scandir for several s6-rc databases and live directories without risking +conflicts, if the suffixes are unique enough. - Bugfixes. diff --git a/doc/index.html b/doc/index.html index 4f501ab..544fa85 100644 --- a/doc/index.html +++ b/doc/index.html @@ -66,7 +66,7 @@ scripts are also run in a controlled environment.