Skip to content

Commit e8958db

Browse files
committed
more physyncd startup fixes
1 parent 4e14591 commit e8958db

2 files changed

Lines changed: 27 additions & 6 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
program:syncd

platform/vs/docker-physyncd-vs/supervisord.conf

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,39 @@ logfile_maxbytes=1MB
33
logfile_backups=2
44
nodaemon=true
55

6-
[program:start.sh]
7-
command=/usr/bin/start.sh
8-
priority=1
6+
[eventlistener:dependent-startup]
7+
command=python -m supervisord_dependent_startup
98
autostart=true
10-
autorestart=false
9+
autorestart=unexpected
10+
startretries=0
11+
exitcodes=0,3
12+
events=PROCESS_STATE
13+
14+
[eventlistener:supervisor-proc-exit-listener]
15+
command=/usr/bin/supervisor-proc-exit-listener --container-name physyncd
16+
events=PROCESS_STATE_EXITED
17+
autostart=true
18+
autorestart=unexpected
19+
20+
[program:rsyslogd]
21+
command=/usr/sbin/rsyslogd -n -iNONE
22+
priority=1
23+
autostart=false
24+
autorestart=unexpected
1125
stdout_logfile=syslog
1226
stderr_logfile=syslog
27+
dependent_startup=true
1328

14-
[program:rsyslogd]
15-
command=/usr/sbin/rsyslogd -n
29+
[program:start]
30+
command=/usr/bin/start.sh
1631
priority=2
1732
autostart=false
1833
autorestart=false
34+
startsecs=0
1935
stdout_logfile=syslog
2036
stderr_logfile=syslog
37+
dependent_startup=true
38+
dependent_startup_wait_for=rsyslogd:running
2139

2240
[program:physyncd]
2341
command=/usr/bin/physyncd_start.sh
@@ -26,3 +44,5 @@ autostart=false
2644
autorestart=false
2745
stdout_logfile=syslog
2846
stderr_logfile=syslog
47+
dependent_startup=true
48+
dependent_startup_wait_for=start:exited

0 commit comments

Comments
 (0)