rodrigobertin
5/1/2017 - 10:16 PM

Kill Livereload Server

Kill Livereload Server

LRPID=`lsof -n -i4TCP:35729 | grep LISTEN | awk '{print $2}'`

if [ $LRPID ]
  then
  echo 'Killing LiveReload server (PID: '$LRPID')'
  kill $LRPID
else
  echo 'Livereload OK'
fi