DEgITx / rats-search

BitTorrent P2P multi-platform search engine for Desktop and Web servers with integrated torrent client.
MIT License
1.58k stars 172 forks source link

How to quit the app/process from within GUI #143

Open slrslr opened 3 years ago

slrslr commented 3 years ago

Hello,

it can be handy if the web UI has a button or menu entry to quit the rats process. I have changed some settings like ports and such, so i guessed i need to restart rats.

Currently i am sending a SIGTERM to the process manually. I am running rats automatically after computer start and if it gets killed using the bash script command: cd ~/apps/rats-search;npm run server &

Also what is the Linux command that should stop the rats properly? Is it: sudo kill -15 $(pidof "npm run server") 15=TERM, 9=KILL

Thank you

DEgITx commented 3 years ago

It will need to probably add some restart admin button, Because web UI itself must be safe and protected from other users clicks.