halt.xml 437 B

12345678910111213141516171819202122232425
  1. <sect1 id="ch07-halt">
  2. <title>Creating the halt script</title>
  3. <para>
  4. A new file <filename>/etc/init.d/halt</filename> is created containing the
  5. following:
  6. </para>
  7. <literallayout>
  8. <userinput>cat &gt; halt &lt;&lt; "EOF"</userinput>
  9. #!/bin/sh
  10. # Begin /etc/init.d/halt
  11. #
  12. # Call halt. See man halt for the meaning of the parameters
  13. #
  14. /sbin/halt -d -f -i -p
  15. # End /etc/init.d/halt
  16. <userinput>EOF</userinput>
  17. </literallayout>
  18. </sect1>