summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/s6-linux-init-hpr.html6
-rw-r--r--doc/s6-linux-init-shutdown.html6
2 files changed, 10 insertions, 2 deletions
diff --git a/doc/s6-linux-init-hpr.html b/doc/s6-linux-init-hpr.html
index 4d164e0..d2a03fb 100644
--- a/doc/s6-linux-init-hpr.html
+++ b/doc/s6-linux-init-hpr.html
@@ -29,7 +29,7 @@ It is normally invoked through <tt>halt</tt>, <tt>poweroff</tt> or
<h2> Interface </h2>
<pre>
- s6-linux-init-hpr [ -f ] [ -h | -p | -r ] [ -d | -w ] [ -W ]
+ s6-linux-init-hpr [ -f ] [ -h | -p | -r ] [ -d | -w ] [ -W ] [ -i ]
</pre>
<ul>
@@ -61,6 +61,10 @@ the system. </li>
<li> <tt>-W</tt>&nbsp;: Do not send a <tt>wall</tt> message to users before shutting
down the system. Some other implementations of the <tt>halt</tt>, <tt>poweroff</tt>
and <tt>reboot</tt> commands use the <tt>--no-wall</tt> long option to achieve this. </li>
+ <li> <tt>-i</tt>&nbsp;: interactive confirmation request. The command needs to be
+launched in a terminal, and will prompt the user to type the (short) hostname of
+the machine to be shut down. On mismatch, the command will abort. The point is to
+avoid inadvertently rebooting a remote machine in an ssh session. </li>
</ul>
<h2> Notes </h2>
diff --git a/doc/s6-linux-init-shutdown.html b/doc/s6-linux-init-shutdown.html
index cc3f9c1..fb7b671 100644
--- a/doc/s6-linux-init-shutdown.html
+++ b/doc/s6-linux-init-shutdown.html
@@ -26,7 +26,7 @@ It is normally invoked as <tt>/sbin/shutdown</tt>.
<h2> Interface </h2>
<pre>
- s6-linux-init-shutdown [ -h [ -H | -P ] | -p | -r | -k ] [ -a ] [ -t <em>sec</em> ] [ -f | -F ] <em>time</em> [ <em>message</em> ]
+ s6-linux-init-shutdown [ -h [ -H | -P ] | -p | -r | -k ] [ -a ] [ -t <em>sec</em> ] [ -i ] [ -f | -F ] <em>time</em> [ <em>message</em> ]
s6-linux-init-shutdown -c [ <em>message</em> ]
</pre>
@@ -87,6 +87,10 @@ Ensures the system is halted, not powered off, at the end of the shutdown sequen
<li> <tt>-P</tt>&nbsp;: this option can only be used in conjunction with <tt>-h</tt>.
Ensures the system is powered off at the end of the shutdown sequence.
<tt>-Ph</tt> is equivalent to <tt>-p</tt>. </li>
+ <li> <tt>-i</tt>&nbsp;: interactive confirmation request. The command needs to be
+launched in a terminal, and will prompt the user to type the (short) hostname of
+the machine to be shut down. On mismatch, the command will abort. The point is to
+avoid inadvertently rebooting a remote machine in an ssh session. </li>
</ul>
<h2> Notes </h2>