Manage your service with upstart in Ubuntu
Just add one file to /etc/init with contents like this:
description "Your Server"
start on (net-device-up and local-filesystems and runlevel [2345])
stop on runlevel [016]
respawn
exec your-server-path-name >> /var/log/your-server.log
Reference: http://upstart.ubuntu.com/wiki/