Skip to content

Commit

Permalink
fetch: pid file may take longer to materialise on slow fs
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 26, 2016
1 parent e433bbb commit 55bb3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch/opnsense-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.