Skip to content
This repository
tree: 63e4824838
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 19 lines (16 sloc) 0.352 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash

uptime=7200
dowtime=3600

while [ 1 ]; do
sleep $dowtime
  echo [`date`] starting scribe sinkder...
  ./scribed -p 9999 -c scribe.sinker.conf &
  pid1=$!
  ./scribed -p 9998 -c scribe.sinker.conf &
  pid2=$!
  echo pid1 is $pid1, pid2 is $pid2
  sleep $uptime
  echo [`date`] killing scribe sinkder
  kill -9 $pid1
  kill -9 $pid2
done
Something went wrong with that request. Please try again.