Setting default logfile everywhere is too dangerous.

parent 18e83aa8
...@@ -106,21 +106,17 @@ def dispatch(command, is_node_command): ...@@ -106,21 +106,17 @@ def dispatch(command, is_node_command):
call(register) call(register)
elif command == 'software': elif command == 'software':
call(software, config=GLOBAL_SLAPOS_CONFIGURATION, call(software, config=GLOBAL_SLAPOS_CONFIGURATION,
option=['--pidfile /opt/slapos/slapgrid-sr.pid', option=['--pidfile /opt/slapos/slapgrid-sr.pid'])
'--logfile /opt/slapos/slapgrid-sr.log'])
elif command == 'instance': elif command == 'instance':
call(instance, config=GLOBAL_SLAPOS_CONFIGURATION, call(instance, config=GLOBAL_SLAPOS_CONFIGURATION,
option=['--pidfile /opt/slapos/slapgrid-cp.pid', option=['--pidfile /opt/slapos/slapgrid-cp.pid'])
'--logfile /opt/slapos/slapgrid-cp.log'])
elif command == 'report': elif command == 'report':
call(report, config=GLOBAL_SLAPOS_CONFIGURATION, call(report, config=GLOBAL_SLAPOS_CONFIGURATION,
option=['--pidfile /opt/slapos/slapgrid-ur.pid', option=['--pidfile /opt/slapos/slapgrid-ur.pid'])
'--logfile /opt/slapos/slapgrid-ur.log'])
elif command == 'bang': elif command == 'bang':
call(bang, config=True) call(bang, config=True)
elif command == 'format': elif command == 'format':
call(format, config=GLOBAL_SLAPOS_CONFIGURATION, call(format, config=GLOBAL_SLAPOS_CONFIGURATION])
option=['--log_file /opt/slapos/slapformat.log'])
elif command in ['start', 'stop', 'status', 'tail']: elif command in ['start', 'stop', 'status', 'tail']:
supervisord() supervisord()
supervisorctl() supervisorctl()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment