How to create a startup service of django for ubuntu server?

901 views Asked by At

I am creating a project where I am using an ubuntu server for production.

I need to run the server in the background even though I log out. So, as a solution I am using screen but however if I restart it won't work as we all know and I have to rewrite the screen commands.

So, I want to use the startup service but somehow I am lost in that as I have no idea how to do that.here is the one way to write the script and I love it but how to add the command

python manage.py runserver [IP Address]

in this service.

Sorry if I sound so silly but I need a quick and useful solution, so I thought to be here.

Thanks if anyone can guide me on it.

0

There are 0 answers