On 08/30/2010 11:57 AM, Ola Lundqvist wrote:
Hi Kir, Christian

Should we simply remove this file? Or should we simply add something
dummy to it?

I do not see where do we create this file -- anywhere in vzctl sources.

We create S00vzreboot in rc6.d, this is needed for reboot mark
(/reboot file) to be created when runlevel 6 is reached. In case
a container is restarted from within (i.e. container's root run 'reboot')
the host system script (vzreboot, run from cron every 5 minutes)
finds this file and restarts the container.

I am going to implement an alternative solution -- the kernel will send
stop/reboot events to the daemon, which will do the needed stuff.
This will render the above functionality redundant and so it will be removed.

For now, I guess, we can reimplement this S00vzreboot as a proper
symlink, this requires some changes in src/lib/script.c. There is an
open bug for it, http://bugzilla.openvz.org/1423

Corrected a similar bug in #594783 just an hour ago.

// Ola

Quoting "Christian Hofstaedtler"<c...@zeha.at>:
Hi Ola, Kir,

the sysv-rc upgrade today migrated my installation to 'dependency
based booting', complained quite a bit about K00vzreboot, but went
on with the migration. It left this state:

# ls -CF1 /etc/rc6.d
K00vzreboot*
K01nullmailer@
K01pdns@
K01unattended-upgrades@
K01urandom@
K02sendsigs@
K03rsyslog@
K04hwclock.sh@
K04umountnfs.sh@
K05networking@
K06ifupdown@
K07umountfs@
K08umountroot@
K09reboot@
README

If I'm not mistaken this will start vzreboot first, and then the other
shutdown scripts will never run. If this is the case, this is a critical
issue.

After restarting the CT, I now have these scripts:

# ls -CF1 /etc/rc6.d
K00vzreboot*
K01nullmailer@
K01pdns@
K01unattended-upgrades@
K01urandom@
K02sendsigs@
K03rsyslog@
K04hwclock.sh@
K04umountnfs.sh@
K05networking@
K06ifupdown@
K07umountfs@
K08umountroot@
K09reboot@
README
S00vzreboot*

This can't be correct ;)


    Christian

--
christian hofstaedtler








--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to