I have followed the step mentioned in the platform services installation guide to setup init.d script to run platform services as service in ec2 amazon linux. However when i start the script it doesn't come out and just runs as a process, so if I close the putty terminal or press 'ctrl+c' the service close down as well. can someone help me on setting up the platform services in init.d?
This doesn't really answer your question, but it might help.
I prefer to start these services using runlevel scripts:
Endeca PS: https://gist.github.com/4694398
Endeca WB: https://gist.github.com/4694410
Endeca CAS: https://gist.github.com/4694414
They need to point to your Endeca installation, then you can register them with chkconfig:
$ /sbin/chkconfig --add endeca-ps