summaryrefslogtreecommitdiff
path: root/scripts
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-10-27 17:11:28 -0500
commitc64eff46e6e69092bcb4f0d99d505700e61e4ecf (patch)
treeb8881e1cccb18bd7f55655f868ffd38f67440c55 /scripts
parent12b09b2a196a00389d4e1b1996fcf29689141920 (diff)
downloadvyatta-op-c64eff46e6e69092bcb4f0d99d505700e61e4ecf.tar.gz
vyatta-op-c64eff46e6e69092bcb4f0d99d505700e61e4ecf.zip
Move the background monitoring for vpn under each of the categories as suggested by support
(cherry picked from commit 7621362a1a6ac0b5234fffdd4ff5fd1fe9f8625d)
Diffstat (limited to 'scripts')
-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