Qilan2 commited on
Commit
8b0a7ed
·
verified ·
1 Parent(s): a28627b

Update server10v.py

Browse files
Files changed (1) hide show
  1. server10v.py +3 -1
server10v.py CHANGED
@@ -71,8 +71,10 @@ os.system('nohup /data/xugou-agent start --server "https://tz.282820.xyz" --toke
71
  os.system("wget https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip_huggingface.py -O /data/ip_huggingface.py")
72
  os.system("wget -O '/data/nezha-agent-amd64' 'https://huggingface.co/datasets/Qilan2/st-server/resolve/main/nezha-agent-v0.17.6?download=true'")
73
  os.system("chmod +x /data/nezha-agent-amd64")
74
- os.system('nohup /data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update > nezha-agent-amd64.log 2>&1 &')
75
  # os.system('/data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update')
 
 
76
 
77
  def kill_frpc_processes():
78
  try:
 
71
  os.system("wget https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip_huggingface.py -O /data/ip_huggingface.py")
72
  os.system("wget -O '/data/nezha-agent-amd64' 'https://huggingface.co/datasets/Qilan2/st-server/resolve/main/nezha-agent-v0.17.6?download=true'")
73
  os.system("chmod +x /data/nezha-agent-amd64")
74
+ # os.system('nohup /data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update > nezha-agent-amd64.log 2>&1 &')
75
  # os.system('/data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update')
76
+ command = "nohup /data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update > /tmp/nezha-agent.log 2>&1 &"
77
+ process = subprocess.Popen(command, shell=True, preexec_fn=os.setpgrp)
78
 
79
  def kill_frpc_processes():
80
  try: