Method 1. Call Url
You can use this method to call a Custom php script, Custom module, Databaselog .... for example.
1. Create a script (here, notify_login_url.sh)
sudo apt-get install openjdk-7-jdk
Install Apache following this tutorial
sudo a2enmod ssl
sudo service apache2 force-reload
#Or sudo /etc/init.d/apache2 force-reload
To repair a broken grub boot from a linux live CD/DVD/USB. For the grub2 EFI boot from uEFI mode and BIOS for BIOS mode.
Then install boot-repair tool from PPA
#Add PPA
sudo add-apt-repository ppa:yannubuntu/boot-repair
#Update apt
sudo apt-get update
1. get THE UUID from blkid
Ex /dev/mapper/encrypted-partition: UUID="d62cb037-e5ba-4f49-a92a-69705e4bae2b" TYPE="crypto_LUKS"
not /dev/mapper/luks-d62cb037-e5ba-4f49-a92a-69705e4bae2b: UUID="f6d930b6-b75b-440c-9b41-67ed538bdd75" TYPE="ext4"