halt.xml 496 B

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