UI accessiblity problem when using cronjob for server restart

Hi,

I have a couch Db server running. I have written a script which will check and kill the multiple instances of the same and then start again a new one.

Now when i start the db server manually, the UI of the DB is accessible via browser. But when i do the same using cronjob, the UI of DB is not accessible. Whenever i try to access the DB via url, it gives me the error saying unavailable. But when i do a ps uxww i can see the server process runnin.

The o/p of ps uxww is attached.