瀏覽代碼

修复启动脚本

root 4 年之前
父節點
當前提交
46b3d55976
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/start.py

+ 1 - 1
src/start.py

@@ -10,7 +10,7 @@ class StartSupervisord:
     def __init__(self):
     def __init__(self):
         self.cron = CronTab(user='root')
         self.cron = CronTab(user='root')
         self.python_bin = sys.executable
         self.python_bin = sys.executable
-        self.main_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'yf_supervisord.py')
+        self.main_file = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'yf_supervisord.py')
 
 
     def init_crond(self):
     def init_crond(self):
         cmd = "{} {}".format(self.python_bin, self.main_file)
         cmd = "{} {}".format(self.python_bin, self.main_file)