Ola Lundqvist <[EMAIL PROTECTED]> writes: > Hi Pawel > > On Tue, Jan 08, 2008 at 01:28:58PM +0100, Paweł Tęcza wrote: >> >> Package: vzctl >> Version: 3.0.22-1 >> Severity: wishlist >> >> I think that it's good idea to start again running VEs by >> `/etc/init.d/vz restart` command. Probably it's not hard to implement >> that feature. First, the init script should check running VEs >> and remember VEID of them before doing `stop`. Next, it should run >> `vzctl start VEID` command for all remebered VEs. >> >> Now the /etc/init.d/vz script doesn't care about running VEs and >> I have to run them manually after `restart`. It can be uncomfortable >> when I have a lot of VEs and I don't want to start all of them. > > Maybe I can add a new option, ve-restart or something that restarts them > all. I do not think I want to restart all the ve:s in the normal command > as upstream do not do that, and this is one of the thing that can > confuse people. Especially as this really affect the uptime of things. > > Do you have any suggestion on how the code would look like?
Hi Ola, At first, thanks a lot for the positive response! I can ask OpenVZ people about current behave of their init script. Now it's not intuitive for me, but I agree that my proposed change can be confusing for another OpenVZ users on Debian. So, I like your idea with a new command for the init script :) I care about running VEs after `restart`, so I think that the new init script command should do the same like `restart` now and additionally `vzctl start VEID` command for all VEs which were running before `restart` command. I'm only not quite sure that `ve-restart` is the best name for a new command. Someone can think that it restarts only running VEs, but without restarting OpenVZ. My best regards, Pawel