Skip to content

Commit

Permalink
Add supervisord debug output for agent
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeRadinovich committed May 16, 2019
1 parent 89dab2c commit 0cd2934
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion azure-pipelines.yml
Expand Up @@ -34,4 +34,9 @@ steps:

- script: |
./stop.sh
displayName: 'Stop Connector, Controller, and Agent'
displayName: 'Stop Connector, Controller, and Agent'

- script: |
docker exec iofog-agent cat /var/log/agent.out.log
displayName: 'Test debug output'
condition: failed()
4 changes: 3 additions & 1 deletion iofog-agent/supervisord.conf
Expand Up @@ -5,4 +5,6 @@ nodaemon=true
command=/usr/sbin/sshd -D

[program:agent]
command=/bin/bash -c "/start.sh"
command=/bin/bash -c "/start.sh"
stderr_logfile=/var/log/agent.err.log
stdout_logfile=/var/log/agent.out.log

0 comments on commit 0cd2934

Please sign in to comment.