OpenVZ Forum


Home » General » Support » *SOLVED* Reboot within VPS on Gentoo Template
Re: Reboot within VPS on Gentoo Template [message #6441 is a reply to message #6375] Mon, 18 September 2006 07:29 Go to previous messageGo to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
/reboot file should be created in VE when VE goes to runlevel 6.
For gentoo template you can add creation of /reboot file to
/etc/init.d/reboot.sh file:

--- /etc/init.d/reboot.sh.backup        2006-09-17 18:17:30.000000000 +0000
+++ /etc/init.d/reboot.sh       2006-09-17 18:18:46.000000000 +0000
@@ -1,6 +1,8 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2

+touch /reboot
+
 /sbin/reboot -dp

 # hmm, if the above failed, that's kind of odd ...

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ubuntu 10.4 moved to a new Kernel
Next Topic: What is an optimal value for numiptent?
Goto Forum:
  


Current Time: Wed Oct 08 00:37:48 GMT 2025

Total time taken to generate the page: 0.18895 seconds