Commit ac5811de8596003298cf9cbcc7edf6b03f17bc2f
1 parent
e27ca538
Exists in
master
monitor for twitter stream
Showing
2 changed files
with
16 additions
and
0 deletions
Show diff stats
... | ... | @@ -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 | + | ... | ... |