updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / readahead-fedora / kill-readahead
blob9c941d1acfa4e376a757373c4adc8081c613c994
1 #!/bin/bash
3 EXITCOUNT=1000
4 COUNT=0
6 while [[ $EXITCOUNT -ge $COUNT ]] ; do
7 if [ -f /tmp/.kill_readahead-collector ]; then
8 if [ "$(pidof readahead-collector)" ]
9 then
10 killall readahead-collector
13 rm -fr /tmp/.kill_readahead-collector
14 exit 0
17 sleep 0.4
18 let COUNT+=1
19 done