View | Details | Raw Unified | Return to bug 31668
Collapse All | Expand All

(-)vzdump.bak (+13 lines)
Lines 717-722 Link Here
717
		debugmsg ('info', "final sync $dir to $tmpdir", \*LOG);
717
		debugmsg ('info', "final sync $dir to $tmpdir", \*LOG);
718
		run_command (\*LOG, $synccmd);
718
		run_command (\*LOG, $synccmd);
719
719
720
		# attempt to up NETDEVs (802.1q interfaces can be exists)
721
		# https://forum.openvz.org/index.php?t=msg&th=9865&goto=43129&S=86b58eb6f1cf262d5dd563aabe3df093#msg_43129
722
		my $conffile = "$vzconf->{confdir}/${opt_vpsid}.conf";
723
		my @ifaces_cfg=`cat $conffile | grep "^NETDEV="`;
724
		foreach my $iface_str (@ifaces_cfg) {
725
		  $iface_str =~ s/NETDEV=//;
726
		  $iface_str =~ s/\"//g;
727
		  my @ifaces = split /\s/, $iface_str;
728
		  foreach my $iface (@ifaces) {
729
		     system ("ifup $iface");
730
		  }
731
		}
732
720
		if ($stopve eq 'stop') {
733
		if ($stopve eq 'stop') {
721
		    debugmsg ('info', "restarting vps", \*LOG);
734
		    debugmsg ('info', "restarting vps", \*LOG);
722
		    run_command (\*LOG, "$vzctl start $vpsid");
735
		    run_command (\*LOG, "$vzctl start $vpsid");

Return to bug 31668