reboot.xml 499 B

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