Disabling transparent_hugepages in Ubuntu 16.04

MongoDB requires disabling of transparent_hugepages in Ubuntu 16.04 for performance enhancements. In order to achieve this we need to make a script that is automatically executed when system reboots. Follow the following steps to enable this in your linux installation:

Step 1:
Create a file by name “disable-transparent-hugepages” in /etc/init.d and paste the following lines in it