iankelling.org
/
git
/
newns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0952a51
)
delete the mount namespace on stop
author
Ian Kelling
<ian@iankelling.org>
Wed, 18 Jan 2017 22:21:32 +0000
(14:21 -0800)
committer
Ian Kelling
<ian@iankelling.org>
Wed, 18 Jan 2017 22:21:32 +0000
(14:21 -0800)
newns
patch
|
blob
|
history
diff --git
a/newns
b/newns
index 39b664b1bd0aa270424d39863cd2eab1a49bfd7e..aff500b5ecc0f0795121ac05a7c910aafec53bad 100755
(executable)
--- a/
newns
+++ b/
newns
@@
-211,6
+211,9
@@
stop() {
if $create; then
ip netns del $nn
fi
+ if mountpoint /root/mount_namespaces/$nn >/dev/null; then
+ umount /root/mount_namespaces/$nn
+ fi
}
case $action in