From a1b139e5d448b260b3f7849a5b24f45da45241a1 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 20 Aug 2020 14:12:21 +0000 Subject: Add the notion of essential service --- doc/s6-rc-compile.html | 5 +++++ doc/s6-rc.html | 11 ++++++++++- src/include/s6-rc/s6rc-db.h | 2 ++ src/s6-rc/s6-rc-compile.c | 23 ++++++++++++++++++++++- src/s6-rc/s6-rc.c | 13 ++++++++++--- 5 files changed, 49 insertions(+), 5 deletions(-) diff --git a/doc/s6-rc-compile.html b/doc/s6-rc-compile.html index d931b91..b429e8e 100644 --- a/doc/s6-rc-compile.html +++ b/doc/s6-rc-compile.html @@ -143,6 +143,11 @@ is ignored, but trailing whitespace is not. Lines starting with a # character are ignored. The file defines the direct dependencies of service, i.e. the services that must be up in order for service to work properly. +
  • An optional regular file named flag-essential. The contents of this +file are irrelevant, only its presence is tested. If this file exists, the service +will be marked as essential, which means that a s6-rc -d change foo +command will not stop the service. Only a s6-rc -D change foo +command will.
  • diff --git a/doc/s6-rc.html b/doc/s6-rc.html index 85a223e..bccc1b5 100644 --- a/doc/s6-rc.html +++ b/doc/s6-rc.html @@ -50,7 +50,7 @@ root privileges. s6-rc [ -l live ] [ -b ] [ -a ] [ -u | -d ] list servicenames... s6-rc [ -l live ] [ -b ] [ -a ] [ -u | -d ] listall servicenames... s6-rc [ -l live ] [ -b ] diff - s6-rc [ -l live ] [ -b ] [ -a ] [ -u | -d ] [ -p ] [ -v verbosity ] [ -n dryrunthrottle ] [ -t timeout ] change [ servicenames... ] + s6-rc [ -l live ] [ -b ] [ -a ] [ -u | -d | -D ] [ -p ] [ -v verbosity ] [ -n dryrunthrottle ] [ -t timeout ] change [ servicenames... ]