self.execute('sleep 3; apt-get update')
self.execute('apt-get install -y supervisor')
self.execute('echo "{config}" > {config_file} && '
+ 'unlink /tmp/supervisor.sock && '
'supervisord -c {config_file}'.
format(
config='[unix_http_server]\n'
'pidfile = /tmp/supervisord.pid\n'
'identifier = supervisor\n'
'directory = /tmp\n'
- 'logfile=/tmp/supervisord.log\n'
- 'loglevel=debug\n'
- 'nodaemon=false\n\n',
+ 'logfile = /tmp/supervisord.log\n'
+ 'loglevel = debug\n'
+ 'nodaemon = false\n\n',
config_file=SUPERVISOR_CONF))
def start_vpp(self):
self.execute('echo "{config}" >> {config_file}'.
format(
config='[program:vpp]\n'
- 'command=/usr/bin/vpp -c /etc/vpp/startup.conf\n'
- 'autostart=false\n'
- 'autorestart=false\n'
- 'redirect_stderr=true\n'
- 'priority=1',
+ 'command = /usr/bin/vpp -c /etc/vpp/startup.conf\n'
+ 'autostart = false\n'
+ 'autorestart = false\n'
+ 'redirect_stderr = true\n'
+ 'priority = 1',
config_file=SUPERVISOR_CONF))
self.execute('supervisorctl reload')
self.execute('supervisorctl start vpp')
:type service: str
"""
if DUTSetup.running_in_container(node):
- command = ('echo $(< /var/log/supervisord.log);'
- 'echo $(< /tmp/*supervisor*.log)')
+ command = ('echo $(< /tmp/*supervisor*.log)')
else:
command = ('journalctl --no-pager --unit={name} '
'--since="$(echo `systemctl show -p '