#!/bin/bash FILE=".pid" if [ -f $FILE ]; then ./stop.sh fi fuser -k 5000/tcp source venv/bin/activate nohup python app.py & echo $! > $FILE