start poll_prefix from cron
[APKPM.git] / cron.sh
1 #!/bin/bash -x
2
3 running=`echo status | nc -w 1 localhost 4730 | grep ^poll_prefix | cut -d"     " -f2`
4 if [ "$running" -gt 0 ] ; then
5         echo "poll allready queued!"
6         exit 1
7 fi
8
9 time echo | gearman -N -f poll_prefix
10