reboot.xml 549 B

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