Author: arekm Date: Sat Nov 6 09:17:50 2010 GMT
Module: PLDWWW URL:
http://www.pld-linux.org/Docs/Vserver?action=diff&rev2=148&rev1=147
---- Log message:
ifup/ifdown will be done by rc-scripts
---- Page affected: Docs/Vserver
---- Diffs:
================================================================
The comment on the change is:
ifup/ifdown will be done by rc-scripts
vserver ${VSERVER_NAME} exec sh -c 'exec sleep 60' &
pid=$(vserver ${VSERVER_NAME} exec pidof -s sleep)
ip link set "eth-${VSERVER_NAME}" netns $pid
- /sbin/ifup "eth-${VSERVER_NAME}" boot
}}}
Create /etc/vservers/test/scripts/post-stop script:
@@ -1007, +1006 @@
VSERVER_SCRIPT="$1"
VSERVER_NAME="$2"
- /sbin/ifdown "eth-${VSERVER_NAME}" boot
ip link del "eth-${VSERVER_NAME}"
}}}
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit