Explorar o código

修复启动脚本

root %!s(int64=4) %!d(string=hai) anos
pai
achega
46b3d55976
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/start.py

+ 1 - 1
src/start.py

@@ -10,7 +10,7 @@ class StartSupervisord:
     def __init__(self):
         self.cron = CronTab(user='root')
         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):
         cmd = "{} {}".format(self.python_bin, self.main_file)