From fc800a4c09d282bb046b67116da748d90dcfa56a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 2 Nov 2025 07:44:29 +0000 Subject: Improve s6-svc; prepare for 2.14.0.0 --- doc/index.html | 4 +-- doc/s6-svc.html | 77 ++++++++++++++++++++++++++++++++++---------------------- doc/upgrade.html | 4 +-- 3 files changed, 51 insertions(+), 34 deletions(-) (limited to 'doc') diff --git a/doc/index.html b/doc/index.html index 83a345a..8d3ffa8 100644 --- a/doc/index.html +++ b/doc/index.html @@ -115,8 +115,8 @@ want nsswitch-like functionality:

Download

+

Exit codes

+ +
+
0
Success.
+
100
Usage error.
+
102
One of the arguments in servicedirs is not a +currently supervised service directory.
+
111
System call failure. +
+

Usage examples

-
 s6-svc -h /service/httpd 
+
 s6-svc -h /run/service/httpd 

- Send a SIGHUP to the process represented by the /service/httpd + Send a SIGHUP to the process represented by the /run/service/httpd service directory. Traditionally, this makes web servers reload their configuration file.

-
 s6-svc -r /service/sshd 
+
 s6-svc -r /run/service/sshd /run/service/httpd 

Kill (and automatically restart, if the wanted state of the service is up) -the process represented by the /service/sshd service directory - -typically the sshd server. +the process represented by the /run/service/sshd service directory +— typically the sshd server — as well as the process represented +by the /run/service/httpd directory — typically the Web server.

-
 s6-svc -wD -d /service/ftpd 
+
 s6-svc -wD -d /run/service/ftpd 

Take down the ftpd server and block until the process is down and the finish script has completed.

-
 s6-svc -wU -T 5000 -u /service/ftpd 
+
 s6-svc -wU -T 5000 -u /run/service/ftpd 

Bring up the ftpd server and block until it has sent notification that it is ready. Exit 1 if it is still not ready after 5 seconds.

-
 s6-svc -wR -t /service/ftpd 
+
 s6-svc -twR /run/service/ftpd /run/service/gitd 

- Send a SIGTERM to the ftpd server; wait for -s6-supervise to restart it, and block -until it has notified that it is ready to serve again. See the NOTES -section below for a caveat. + Send a SIGTERM to the ftpd server and the git server; wait for their +respective supervisors to restart them, and block +until they both have notified that they are ready to serve again. See the NOTES +section below.

-
 s6-svc -a /service/httpd/log 
+
 s6-svc -a /run/service/httpd/log 

Send a SIGALRM to the logger process for the httpd server. If this logger process is s6-log, this triggers a log rotation. @@ -169,32 +185,33 @@ process is s6-log, this triggers a log rotation.

Internals

Notes

diff --git a/doc/upgrade.html b/doc/upgrade.html index 5aa07d1..5108256 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -18,7 +18,7 @@

What has changed in s6

-

in 2.13.3.0

+

in 2.14.0.0

in 2.13.2.0

-- cgit v1.3.1