Qilan2 commited on
Commit
6a543bb
·
verified ·
1 Parent(s): 2c4ccfa

Update server2.py

Browse files
Files changed (1) hide show
  1. server2.py +3 -2
server2.py CHANGED
@@ -364,9 +364,10 @@ port = {port}
364
  with open('/etc/rsyncd.conf', 'w') as f:
365
  f.write(rsyncd_conf_content.strip())
366
  print(f"Successfully wrote to /etc/rsyncd.conf for module .")
367
- os.system("rsync --daemon")
368
  write_rsyncd_conf(data_folder)
369
-
 
370
  def check_api1():
371
  # 第一次检查 SillyTavern 是否启动
372
  thread_started = False # 在函数内初始化标志变量
 
364
  with open('/etc/rsyncd.conf', 'w') as f:
365
  f.write(rsyncd_conf_content.strip())
366
  print(f"Successfully wrote to /etc/rsyncd.conf for module .")
367
+
368
  write_rsyncd_conf(data_folder)
369
+ os.system("sudo rsync --daemon")
370
+ os.system("ps aux | grep rsync")
371
  def check_api1():
372
  # 第一次检查 SillyTavern 是否启动
373
  thread_started = False # 在函数内初始化标志变量