reboot.xml 485 B

123456789101112131415161718192021222324252627282930
  1. <sect1 id="ch07-reboot">
  2. <title>Creating the reboot script</title>
  3. <para>
  4. Create a new file <filename>/etc/init.d/reboot</filename> containing the
  5. following:
  6. </para>
  7. <para>
  8. <screen>
  9. <userinput>cat &gt; reboot &lt;&lt; "EOF"</userinput>
  10. #!/bin/sh
  11. # Begin /etc/init.d/reboot
  12. #
  13. # Call reboot. See man halt for the meaning of the parameters
  14. #
  15. echo "System reboot in progress..."
  16. /sbin/reboot -d -f -i
  17. # End /etc/init.d/reboot
  18. <userinput>EOF</userinput>
  19. </screen>
  20. </para>
  21. </sect1>