From c64eff46e6e69092bcb4f0d99d505700e61e4ecf Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 6 Sep 2011 11:49:01 -0500 Subject: Move the background monitoring for vpn under each of the categories as suggested by support (cherry picked from commit 7621362a1a6ac0b5234fffdd4ff5fd1fe9f8625d) --- scripts/vyatta-monitor-background | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3