projects
/
APKPM.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
specify poll_* to call from cron
[APKPM.git]
/
cron.sh
1
#!/bin/bash
2
3
what=$1
4
5
running=`echo status | nc -w 1 localhost 4730 | grep ^$what | cut -d" " -f2`
6
if [ "$running" -gt 0 ] ; then
7
echo "$what allready queued!"
8
exit 1
9
fi
10
11
time echo | gearman -N -f $what
12