下面是文件中存在的代码,该文件将在cronjob中每1小时触发一次
logging.info("Flask service was stopped, restarting it..")
cmd="python /var/www/html/scripts/flask_server.py &"
process=Popen(cmd, stdout=PIPE, stdin=PIPE, stderr=STDOUT, shell=True, close_fds=True)
logging.info(process.returncode) --> Printing None
它正在触发脚本,但是flask服务无法启动