I recently installed the Google App Engine Development server on my FreeBSD home server to be able to test my GAE app remotely. What I can't figure out is how to run the Python development server as a background process on boot.
I am running everything in a jail. So, currently, when I want to start the dev server I have to log in to the server, open up the jail and run the Python script manually. Worst thing is that I have to stay connected, because when my laptop loses connection to the jail, the Python process is stopped. I can't figure out a way to run it as a background process / daemon.
In my search of finding a solution (like rc.d, which I don't get at all), I already made a .sh script that runs the command, but I didn't find a way to run that at stratup.
This is the complete command:
python dev_appserver.py --host=0.0.0.0 --port=2222 /mnt/path/to/gae_app/