Here is a script that you can copy to /etc/init.d/ to manage your Minecraft server.