Dont use namespaces for pl_netflow slice
authorSapan Bhatia <gwsapan@gmail.com>
Tue, 20 Mar 2012 15:23:54 +0000 (11:23 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Tue, 20 Mar 2012 15:23:54 +0000 (11:23 -0400)
exec/pfmount

index 05fc644..56b660e 100755 (executable)
@@ -1,6 +1,15 @@
 #!/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"