+function destroy_all () {
+
+ stop_all
+ virsh -c lxc:/// list --all | while read line; do
+ lxc_name=$(echo $line | cut -d' ' -f2)
+ # ignore regular vservers like testmaster and the like
+ timestamp_file=$path/$lxc_name/$lxc_name.timestamp
+ [ -f $timestamp_file ] || continue
+ virsh -c lxc:/// undefine $lxc_name
+ rm -fr $path/$lxc_name
+ done
+}
+
+function restart_all () {
+
+ stop_all
+ start_all
+}
+
+#################### deal with one user-specified container