|
|
@@ -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.dirname(os.path.abspath(__file__))), 'yf_supervisord.py')
|
|
|
+ self.main_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'src/yf_supervisord.py')
|
|
|
|
|
|
def init_crond(self):
|
|
|
cmd = "{} {}".format(self.python_bin, self.main_file)
|
|
|
@@ -35,7 +35,7 @@ production 生产模式
|
|
|
result = args.parse_args()
|
|
|
mode = result.mode
|
|
|
|
|
|
- setting_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'config/run_mode')
|
|
|
+ setting_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config/run_mode')
|
|
|
with open(setting_path, 'w') as fw:
|
|
|
fw.write(mode)
|
|
|
|