Skip to content
Permalink
Browse files

fetch: pid file may take longer to materialise on slow fs

  • Loading branch information...
fichtner committed Jul 26, 2016
1 parent e433bbb commit 55bb3d9dcbc80031a0ef48934259d922d59e121e
Showing with 1 addition and 1 deletion.
  1. +1 −1 fetch/opnsense-fetch.sh
@@ -32,10 +32,10 @@ PIDFILE=$(mktemp -q /tmp/opnsense-fetch.pid.XXXXXX)
daemon -fp ${PIDFILE} fetch ${@}

while :; do
sleep 1
echo -n .
[ ! -f ${PIDFILE} ] && break
pgrep -qF ${PIDFILE} || break
sleep 1
done

rm -f ${PIDFILE}

0 comments on commit 55bb3d9

Please sign in to comment.
You can’t perform that action at this time.