#!/bin/bash
if curl -s --head https://www.menu-qr-code.fr/admin/login/?next=/admin/ | grep "200 OK" 
  then
    echo "QrCode up"  
  else
    echo "The HTTP server MenuQrCode is down!"
    /usr/sbin/service postgresql restart
fi

