[英]supervise (python deamontools) exits after closing ssh client
I am trying to keep a python script running on my server after I close my ssh client connection. 关闭ssh客户端连接后,我试图使python脚本在服务器上运行。 Normally I use 通常我用
sudo supervise . >output.log 2>err.log < /dev/null &
but now on a new server its not working. 但现在在新服务器上无法正常工作。 It works fine when i start it first and still connected but the second I close my connection supervise stops. 当我第一次启动它并仍然连接但第二次关闭连接时,它工作正常。 This is my run file, and I've tripled checked its in the correct directory: 这是我的运行文件,在正确的目录中将其检查了三倍:
#!/bin/bash
sudo python3 Server.py
Any help is greatly appreciated! 任何帮助是极大的赞赏!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.