halt.xml 448 B

123456789101112131415161718192021
  1. <sect1 id="ch07-halt">
  2. <title>Creating the halt script</title>
  3. <para>Create the <filename>/etc/init.d/halt</filename> script by running the
  4. following command:</para>
  5. <para><screen><userinput>cat &gt; /etc/init.d/halt &lt;&lt; "EOF"</userinput>
  6. #!/bin/sh
  7. # Begin /etc/init.d/halt
  8. #
  9. # Call halt. See man halt for the meaning of the parameters
  10. #
  11. /sbin/halt -d -f -i -p
  12. # End /etc/init.d/halt
  13. <userinput>EOF</userinput></screen></para>
  14. </sect1>