diff options
Diffstat (limited to 'scripts/vyatta-monitor-cleanup')
-rw-r--r-- | scripts/vyatta-monitor-cleanup | 2 |
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) |