OpenVZ Forum


Home » General » Support » Reboot
Reboot [message #8722] Mon, 04 December 2006 17:57 Go to next message
sloop is currently offline  sloop
Messages: 1
Registered: December 2006
Junior Member
I have installed two VPS, one using template centos-4-i386-minimal and the other centos-4-i386-default. Neither one of them will reboot when I run the "reboot" command inside of the VE.

The templates don't seem to have the proper reboot functions as described in the forum. There is not a cron job I could find to check for a /reboot file.

[root@vps1 /]# whereis reboot
reboot: /sbin/reboot /usr/share/man/man2/reboot.2.gz /usr/share/man/man8/reboot.8.gz
[root@vps1 /]# ls -la /sbin/reboot
lrwxrwxrwx  1 root root 4 Dec  2 17:57 /sbin/reboot -> halt
[root@vps1 /]# ls /etc/init.d/
auditd  functions  httpd     killall  netfs     network  rawdevices  sendmail  smb   syslog   xinetd
crond   halt       iptables  named    netplugd  portmap  saslauthd   single    sshd  winbind
[root@vps1 /]#


Is there a rpm package that installs the openvz-specific reboot function? Or are there intsructions for how to create the correct reboot command?

Many thanks,

Mark
Re: Reboot [message #8737 is a reply to message #8722] Tue, 05 December 2006 08:01 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Actually it should work or at least it works for me.
Centos-4-i386-minimal template contents /etc/rc6.d/S00vzreboot file. This script works while you're rebooting VE:
#!/bin/bash
>//reboot

You can ensure yourself, that after executing "reboot" in VE, /reboot file appears in VE (this is /vz/private/<veid>/reboot file on HN). Then you should wait for 5 minutes (maximum) and VE will start again.

But don't forget to check, that crond is working on your node! Smile

HTH,
Vasily.

Previous Topic: java urlencode problem
Next Topic: Note - Problem with RPM Repo versions right now maybe?
Goto Forum:
  


Current Time: Fri Oct 11 21:37:38 GMT 2024

Total time taken to generate the page: 0.06959 seconds