Commit 179bb0647e75d8dcb83d1e826e27f9786a82bda0
1 parent
160cea0d
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
monitor for twitter stream
Showing
2 changed files
with
16 additions
and
0 deletions
Show diff stats
plugins/community_hub/twitter-stream-listener/stream_monitor
0 → 100755
| ... | ... | @@ -0,0 +1,16 @@ |
| 1 | +#!/bin/bash | |
| 2 | + STREAMEXEC=/home/93274300500/projetos/noosfero/plugins/community_hub/twitter-stream-listener/stream.rb | |
| 3 | + RUBY=/usr/bin/ruby | |
| 4 | + | |
| 5 | + case $1 in | |
| 6 | + start) | |
| 7 | + echo $$ > /var/run/twitter_stream.pid; | |
| 8 | + exec 2>&1 ruby ${STREAMEXEC} 1>/tmp/stream.out | |
| 9 | + ;; | |
| 10 | + stop) | |
| 11 | + kill `cat /var/run/twitter_stream.pid` ;; | |
| 12 | + *) | |
| 13 | + echo "usage: stream_monitor {start|stop}" ;; | |
| 14 | + esac | |
| 15 | + exit 0 | |
| 16 | + | ... | ... |