OpenVZ Forum - RDF feed
type: channel
items: Reboot
items: Re: Reboot

Reboot
type: item
description: 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
creator: sloop
date: 2006-12-04T17:57:27-00:00

Re: Reboot
type: item
description: 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! HTH, Vasily.
creator: Vasily Tarasov
date: 2006-12-05T08:01:01-00:00