|
|
@@ -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)
|