This is my API service, i am running on api.getbash.wtf.
pip3 install -r requirements.txt
sudo bash startAsService.sh
Commands below shows how start, stop and restart the api service.
service bashapi start
service bashapi stop
service bashapi restart