#!/bin/bash
while [ 1 ] 
do
 echo "Restart Firefox"
 pgrep firefox && killall -9 firefox
 sleep 5
 firefox &> /dev/null &
 sleep 1800
done