Unable to start openfire service on linux

Hello there,

I am newbie in linux, I am trying to start openfire server as service using shell>/etc/init.d/openfire start

After starting it is showing me status as “Openfire is running” but i am unable to access admin section using http://example.com:9090/

If i start server manually by executing shell>*/opt/openfire/bin/openfire.sh it start properly and i am able to access admin section *using http://example.com:9090/

but problem in manual start is when I close putty server stops running.

I would like to run openfile server as services.

Is there any way to run openfire server as services?

Please help.

Thank you