halt.xml 438 B

123456789101112131415161718192021222324252627
  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. <para>
  8. <screen>
  9. <userinput>cat &gt; halt &lt;&lt; "EOF"</userinput>
  10. #!/bin/sh
  11. # Begin /etc/init.d/halt
  12. #
  13. # Call halt. See man halt for the meaning of the parameters
  14. #
  15. /sbin/halt -d -f -i -p
  16. # End /etc/init.d/halt
  17. <userinput>EOF</userinput>
  18. </screen>
  19. </para>
  20. </sect1>