git://git.onelab.eu
/
vsys-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
85c3984
)
Dont use namespaces for pl_netflow slice
author
Sapan Bhatia
<gwsapan@gmail.com>
Tue, 20 Mar 2012 15:23:54 +0000
(11:23 -0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Tue, 20 Mar 2012 15:23:54 +0000
(11:23 -0400)
exec/pfmount
patch
|
blob
|
history
diff --git
a/exec/pfmount
b/exec/pfmount
index
05fc644
..
56b660e
100755
(executable)
--- a/
exec/pfmount
+++ b/
exec/pfmount
@@
-1,6
+1,15
@@
#!/bin/sh
# Mount the planetflow directory in a slice
#!/bin/sh
# Mount the planetflow directory in a slice
+# FIXME: if touch operation failes
+if [ ! -e /etc/vservers/nonamespace ]; then
+ touch /etc/vservers/nonamespace
+ if [ $? -eq 0 ]; then
+ vserver pl_netflow stop
+ vserver pl_netflow start
+ fi
+fi
+
VERSION=`uname -r | awk -F"-" '{print $1;}' | awk -F"." '{print $3}'`
DEST="/vservers/$1/pf"
VERSION=`uname -r | awk -F"-" '{print $1;}' | awk -F"." '{print $3}'`
DEST="/vservers/$1/pf"