OpenVZ Forum



Members   Search      Help    Register    Login    Home
Home » General » Support » *SOLVED* Reboot within VPS on Gentoo Template
*SOLVED* Reboot within VPS on Gentoo Template [message #6375] Fri, 15 September 2006 00:35 Go to next message
skatewhale is currently offline skatewhale
Messages: 9
Registered: August 2006
Location: Toronto
Junior Member
From: *cybersurf.com
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 03: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 03:29 Go to previous messageGo to next message
Vasily Tarasov is currently offline Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
From: *sw.ru
/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 02:32 Go to previous messageGo to next message
Inverted is currently offline Inverted
Messages: 9
Registered: September 2006
Junior Member
From: *dyn.grandenetworks.net
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 02:47 Go to previous messageGo to next message
Vasily Tarasov is currently offline Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
From: *sw.ru
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] Tue, 24 April 2007 23:57 Go to previous messageGo to next message
swindmill is currently offline swindmill
Messages: 57
Registered: April 2007
Member
From: *hsd1.mi.comcast.net
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 03:58 Go to previous messageGo to next message
Vasily Tarasov is currently offline Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
From: *sw.ru
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 10:49 Go to previous message
swindmill is currently offline swindmill
Messages: 57
Registered: April 2007
Member
From: *hsd1.mi.comcast.net
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 10:50]

Report message to a moderator

Previous Topic:*SOLVED* control-C ignored in VE ??
Next Topic:Hostname resolution outside of VE?
Goto Forum:
  


Current Time: Sat May 18 17:29:55 EDT 2013
Powered by FUDforum Powered by Parallels Virtuozzo Containers