echo value /proc/sys/kernel/shmmax stops working after the server is rebooted

you have to create a script in /etc/init.d to make this change everytime your server is rebooted