Skip to content

Commit 3700b62

Browse files
gomlgshach-que
authored andcommitted
Don't restart run-ssh.sh when it cleanly exits. (RedpointArchive#67)
1 parent 9290778 commit 3700b62

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

preflight/run-ssh.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ if [ ! -f /is-baking ]; then
4848
sleep 1
4949
done
5050

51-
exit 0
51+
exit 1 # Supervisord will restart.
5252
fi
5353

preflight/supervisord.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ stderr_logfile_maxbytes=0
7373

7474
[program:ssh]
7575
command=/app/run-ssh.sh
76-
autorestart=true
76+
autorestart=unexpected
77+
exitcodes=0,2
7778
startretries=100000
7879
stdout_logfile=/dev/fd/1
7980
stdout_logfile_maxbytes=0
@@ -87,4 +88,4 @@ startretries=100000
8788
stdout_logfile=/dev/fd/1
8889
stdout_logfile_maxbytes=0
8990
stderr_logfile=/dev/fd/2
90-
stderr_logfile_maxbytes=0
91+
stderr_logfile_maxbytes=0

0 commit comments

Comments
 (0)