OpenVZ Forum


Home » General » Support » *SOLVED* Reboot within VPS on Gentoo Template
*SOLVED* Reboot within VPS on Gentoo Template [message #6375] Fri, 15 September 2006 04:35 Go to next message
skatewhale is currently offline  skatewhale
Messages: 9
Registered: August 2006
Location: Toronto
Junior Member
Have anyone figured out a way to let the VPS with Gentoo Template to reboot when typed in reboot from the VPS shell?

When I typed in reboot in the VPS's shell, the vps stops, but it never came backup. I had to restart it from the SSH of my root account on the phsycial node.

VPS with fedora or centos, or even openSUSE template seems to be working fine. My cron reboot file is set to cron every minute.

any ideas on what files I had to add/edit in Gentoo template to enable reboot command within the VPS?

Thanks for any help!

[Updated on: Mon, 18 September 2006 07:34] by Moderator

Report message to a moderator

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 next 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 ...

Re: Reboot within VPS on Gentoo Template [message #6667 is a reply to message #6441] Thu, 21 September 2006 06:32 Go to previous messageGo to next message
Inverted is currently offline  Inverted
Messages: 9
Registered: September 2006
Junior Member
I added this to my Gentoo VE and it still doesn't start back up...

- Inverted
Re: Reboot within VPS on Gentoo Template [message #6669 is a reply to message #6667] Thu, 21 September 2006 06:47 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Can you provide me temporary access to the node?
If yes - then PM me login information.

I guess you forgot something small and it's really troublesome to
determine it without access...

BTW, does cron work?

Thanks!
Re: *SOLVED* Reboot within VPS on Gentoo Template [message #12317 is a reply to message #6375] Wed, 25 April 2007 03:57 Go to previous messageGo to next message
swindmill is currently offline  swindmill
Messages: 57
Registered: April 2007
Member
How exactly was this solved?
Re: *SOLVED* Reboot within VPS on Gentoo Template [message #12324 is a reply to message #12317] Wed, 25 April 2007 07:58 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
If you wish, you can give me an access to the node and I'll take a look at it. I don't rememeber now how it was solved previous time.

Vasily.
Re: *SOLVED* Reboot within VPS on Gentoo Template [message #12349 is a reply to message #12324] Wed, 25 April 2007 14:49 Go to previous messageGo to next message
swindmill is currently offline  swindmill
Messages: 57
Registered: April 2007
Member
I ended up moving /sbin/reboot to /sbin/reboot2 and creating a symbolic link from /etc/init.d/reboot.sh to /sbin/reboot

I then edited the /etc/init.d/reboot.sh script to touch /reboot and execute /sbin/reboot2 instead of /sbin/reboot

This seems to work.

See any possible problems with solving it this way?

[Updated on: Wed, 25 April 2007 14:50]

Report message to a moderator

Re: *SOLVED* Reboot within VPS on Gentoo Template [message #51036 is a reply to message #12349] Wed, 01 January 2014 17:05 Go to previous message
Santhosh is currently offline  Santhosh
Messages: 1
Registered: January 2014
Location: Bangalore
Junior Member
Hi,

You would need to update the vzctl version of the host-node to >4.1
Previous Topic: Ubuntu 10.4 moved to a new Kernel
Next Topic: What is an optimal value for numiptent?
Goto Forum:
  


Current Time: Tue Aug 13 10:25:37 GMT 2024

Total time taken to generate the page: 0.02924 seconds