diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-06-24 04:42:49 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-06-24 04:42:49 +0000 |
commit | eba790dff930c232d6b5266fdfda0b1231167609 (patch) | |
tree | 5b87eda28200193ee9702f0e22f1ef03306844c1 /doc/s6-svscan.html | |
parent | 12b096677c1fd9d90c496a807ac4555be211fc18 (diff) | |
download | s6-eba790dff930c232d6b5266fdfda0b1231167609.tar.xz |
Document new s6-svscan options
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/s6-svscan.html')
-rw-r--r-- | doc/s6-svscan.html | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/doc/s6-svscan.html b/doc/s6-svscan.html index 8b94cf4..ae815fc 100644 --- a/doc/s6-svscan.html +++ b/doc/s6-svscan.html @@ -27,7 +27,7 @@ the root or a branch of a <em>supervision tree</em>. <h2> Interface </h2> <pre> - s6-svscan [ -d <em>notif</em> ] [ -X <em>consoleholder</em> ] [ -c max ] [ -t <em>rescan</em> ] [ <em>scandir</em> ] + s6-svscan [ -d <em>notif</em> ] [ -X <em>consoleholder</em> ] [ -c max | -C services_max ] [ -L name_max ] [ -t <em>rescan</em> ] [ <em>scandir</em> ] </pre> <ul> @@ -67,6 +67,7 @@ even that the relevant <a href="s6-supervise.html">s6-supervise</a> processes ha been started. If you need to test for <em>deep readiness</em>, meaning that all the services in the supervision tree have been started and are ready, you cannot rely on this option. </li> + <li> <tt>-X <em>consoleholder</em></tt> : assume the output console is available on descriptor <em>consoleholder</em>. If this option is given, and a <tt>s6-svscan-log</tt> service exists, the <a href="s6-supervise.html">s6-supervise</a> process for that service @@ -75,17 +76,31 @@ for a setup done via <a href="//skarnet.org/software/s6-linux-init/">s6-linux-in where all error messages go to the <tt>s6-svscan-log</tt> catch-all logger service by default, except messages from this service itself, which fall back to <em>consoleholder</em>. If you're not sure what to use this option for, or how, you don't need it. </li> - <li> <tt>-c <em>max</em></tt> : maintain services for up to <em>max</em> -service directories. Default is 500. Lower limit is 2. Upper limit is 90000. If + + <li> <tt>-C <em>services_max</em></tt> : maintain services for up to <em>services_max</em> +service directories, including loggers. Default is 1000. Lower limit is 4. Upper limit is 160000. If you're increasing this value from the default, please note that: <ul> <li> The higher <em>max</em> is, the more stack memory s6-svscan will use, -up to 100 bytes per service. </li> +up to 200 bytes per service, also depending on the value of <em>name_max</em>. </li> <li> s6-svscan uses 2 file descriptors per logged service. </li> </ul> It is the admin's responsibility to make sure that s6-svscan has enough available descriptors to function properly and does not exceed its stack limit. The default -of 500 is safe and provides enough room for every reasonable system. </li> +of 1000 is safe and provides enough room for every reasonable system. </li> + + <li> <tt>-c <em>max</em></tt> : a deprecated way of setting <em>services_max</em>. +If the <tt>-c</tt> option is given, the value of <em>max</em> is doubled, and the result +is used as <em>services_max</em>. The reason for the change is that previous versions +of s6-svscan handled services+loggers as a single entity; but this version of s6-svscan +handles services and loggers in the same way, so with the default values it's now possible +to handle e.g. 600 unlogged services, whereas previously you were limited to 500 because +s6-svscan was reserving room for the loggers. </li> + + <li> <tt>-L <em>name_max</em></tt> : the maximum length of a name in the +scan directory. Names longer than <em>name_max</em> won't be taken into account. +Default is 251. It cannot be set lower than 11 or higher than 1019. </li> + <li> <tt>-t <em>rescan</em></tt> : perform a scan every <em>rescan</em> milliseconds. If <em>rescan</em> is 0 (the default), automatic scans are never performed after the first one and s6-svscan will only detect new services when told to via a |