How to auto run teamcity after reboot on CentOS 6.2

I have successfully installed TeamCity 7 and its all working fine.  However, i cannot figure out how to run the "teamcity-server.sh start" command after every reboot.

I've tried adding the following line to /etc/rc.d/rc.local
/opt/TeamCity/bin/teamcity-server.sh start

But this command does not start the server.  I don't think there are any errors in the logs...

There's no problem accessing TeamCity after I've run the command manually:
/opt/TeamCity/bin/teamcity-server.sh start

Any ideas how i can get the server to run automatically after every reboot?

Please sign in to leave a comment.