Commit b5fc992b authored by Vitaly Lipatov's avatar Vitaly Lipatov

add run_on_all

parent 932c9e2b
#!/bin/sh
for id in $(vzlist | sed -e "s| *\([0-9]*\).*|\1|g") ; do
CONF=/etc/vz/conf/$id.conf
test -r $CONF || continue
eval `cat $CONF | grep ^HOSTNAME | sed -e "s|office.etersoft.ru||g"`
printf "%s (%20s):" $id $HOSTNAME
vzctl exec $id "$@"
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment