Commit ac5811de8596003298cf9cbcc7edf6b03f17bc2f

Authored by Evandro Jr
1 parent e27ca538
Exists in master

monitor for twitter stream

twitter-stream-listener/stop 0 → 100644
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 +
... ...