I use this with Ubuntu and StarBound installed via steamcmd.
Save the content below into the file /etc/init/starbound.conf
so nano /etc/init/starbound.conf, then paste in the content, then crtl+o to save and crtl+x to exit nano.
Warning! - You might have to correct the path /root/starbound/linux64/starbound_server to point correctly at your stabound install.