summaryrefslogtreecommitdiff
path: root/scripts/vyatta-monitor-background
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-06 11:49:01 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-09-06 11:49:01 -0500
commit7621362a1a6ac0b5234fffdd4ff5fd1fe9f8625d (patch)
tree09fd4e24fd856aaed661949e6313f1e66dfd400d /scripts/vyatta-monitor-background
parent334a6fab05b5e51097010b1da41fca32df7b8959 (diff)
downloadvyatta-op-7621362a1a6ac0b5234fffdd4ff5fd1fe9f8625d.tar.gz
vyatta-op-7621362a1a6ac0b5234fffdd4ff5fd1fe9f8625d.zip
Move the background monitoring for vpn under each of the categories as suggested by support
Diffstat (limited to 'scripts/vyatta-monitor-background')
-rwxr-xr-xscripts/vyatta-monitor-background4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-monitor-background b/scripts/vyatta-monitor-background
index fc6c19c..8a5c0cf 100755
--- a/scripts/vyatta-monitor-background
+++ b/scripts/vyatta-monitor-background
@@ -1,6 +1,10 @@
#!/bin/bash
declare awkmatch="$2"
declare pidname="$1"
+if [ ! -d /var/run/vyatta/monitor ]; then
+ sudo mkdir -p /var/run/vyatta/monitor
+ sudo chmod -R 777 /var/run/vyatta/monitor
+fi
for i in "${@:3}"; do
awkmatch+="|$i"
done