Change "Quit the server with CTRL-BREAK."

Viewed 19060

Is there a way in one of the Django scripts to change the CTRL+BREAK exit command to something else when using "python manage.py runserver?"

3 Answers

You can use ps and grep to find the process:

ps aux | grep runserver 

then kill it by:

kill the_pid

I mean you can write this to a shell script, then invoke it.

unluckily for me it doesn't work. i tried: ctrl + fn + b ctrl + fn + c ctrl + fn + pause(F5) ctrl + c

neeh help to end my server without re-opening the terminal which is connected to anaconda

Related