summaryrefslogtreecommitdiff
path: root/doc/s6-linux-init-telinit.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-04-27 23:27:39 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-04-27 23:27:39 +0000
commit6f13cd197540af0bf5e87f87ab0e03548d9c5f64 (patch)
tree5ce691b38fe2a9d0033931a1e39e568c142966d1 /doc/s6-linux-init-telinit.html
parent31dcbd86ed7e34b4d8ea272ceb9c0a4cfac54c56 (diff)
downloads6-linux-init-6f13cd197540af0bf5e87f87ab0e03548d9c5f64.tar.xz
Doc fixes
Diffstat (limited to 'doc/s6-linux-init-telinit.html')
-rw-r--r--doc/s6-linux-init-telinit.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/s6-linux-init-telinit.html b/doc/s6-linux-init-telinit.html
index bc7f12d..2bea4e5 100644
--- a/doc/s6-linux-init-telinit.html
+++ b/doc/s6-linux-init-telinit.html
@@ -46,6 +46,18 @@ for compatibility with sysvinit's <em>0</em> and <em>6</em> runlevels
that respectively halt and reboot the machine. </li>
</ul>
+<h2> Exit codes </h2>
+
+<ul>
+ <li> 100: wrong usage </li>
+ <li> 111: system call failed </li>
+ <li> Else, <tt>s6-linux-init-telinit</tt> exits with the same exit code
+as the <em>runlevel</em> script called with the <em>rl</em> argument. </li>
+ <li> If <em>rl</em> is 0 or 6, in case of success
+<tt>s6-linux-init-telinit</tt> exits 0, but the system shuts down
+immediately as it returns. </li>
+</ul>
+
<h2> Notes </h2>
<ul>