nohup python3 main.py > /data/logs/api/api_service.log & echo $! > pidfile.txt