- #!/usr/local/python3/bin/python3
- # -*- coding: utf-8 -*-
- import os
- process = "/tmp/xh_twapi01.lock"
- os.system("ps -ef|grep xh_twapi01|grep -v grep >%s" % process)
- if not os.path.getsize(process):
- os.system("//home/python3/xh_twapi01/run_gunicorn.sh")
|