summaryrefslogtreecommitdiff
path: root/scripts/vyatta-monitor-cleanup
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-15 16:51:05 -0700
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:29 -0500
commitb04673afd899d2032200799a9d9b0c72901ad262 (patch)
treecdc31bc0d25a189341aa31facfa678120650d7e5 /scripts/vyatta-monitor-cleanup
parent5abab7cc94b1eb8784a34c5efd0a1a685979630d (diff)
downloadvyatta-op-b04673afd899d2032200799a9d9b0c72901ad262.tar.gz
vyatta-op-b04673afd899d2032200799a9d9b0c72901ad262.zip
More monitor interface traffic commands
(cherry picked from commit 3358412ae5e8d7ba94aedeb78080d2509d82239f)
Diffstat (limited to 'scripts/vyatta-monitor-cleanup')
-rw-r--r--scripts/vyatta-monitor-cleanup2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-monitor-cleanup b/scripts/vyatta-monitor-cleanup
index cd08cbc..553c1f8 100644
--- a/scripts/vyatta-monitor-cleanup
+++ b/scripts/vyatta-monitor-cleanup
@@ -4,7 +4,7 @@ declare CURRENT_UID=$(id -u)
declare CURRENT_UNAME=$(id -un)
declare -a MPIDS
MODE=$1
-MPIDS=( $(ls /var/run/vyatta/monitor/*.pid) )
+MPIDS=( $(ls /var/run/vyatta/monitor/*.pid 2> /dev/null ) )
for pidfile in "${MPIDS[@]}"; do
pid=$(<$pidfile)