projects
/
APKPM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
154c443
)
specify poll_* to call from cron
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 20 Jun 2011 20:39:41 +0000
(22:39 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 20 Jun 2011 20:39:41 +0000
(22:39 +0200)
cron.sh
patch
|
blob
|
history
diff --git
a/cron.sh
b/cron.sh
index
dd695e6
..
9736c03
100755
(executable)
--- a/
cron.sh
+++ b/
cron.sh
@@
-1,10
+1,12
@@
-#!/bin/bash
-x
+#!/bin/bash
-running=`echo status | nc -w 1 localhost 4730 | grep ^poll_prefix | cut -d" " -f2`
+what=$1
+
+running=`echo status | nc -w 1 localhost 4730 | grep ^$what | cut -d" " -f2`
if [ "$running" -gt 0 ] ; then
- echo "
poll
allready queued!"
+ echo "
$what
allready queued!"
exit 1
fi
-time echo | gearman -N -f
poll_prefix
+time echo | gearman -N -f
$what