File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -88,5 +88,9 @@ RUN echo 'deb https://packages.tideways.com/apt-packages debian main' > /etc/apt
88
88
# Copy custom supervisor's configs and scripts
89
89
# Netcat is used to connect to a memcached server
90
90
RUN apt-get update && apt-get install -y netcat
91
- COPY ./services /opt/docker/etc/supervisor.d/
92
- COPY ./services /opt/docker/bin/service.d/
91
+ COPY ./services/*.conf /opt/docker/etc/supervisor.d/
92
+ COPY ./services/*.sh /opt/docker/bin/service.d/
93
+
94
+ # Ensure the service files are already executable
95
+ RUN chmod +x /opt/docker/bin/service.d/flush_cache.sh
96
+ RUN chmod +x /opt/docker/bin/service.d/tideways.sh
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ priority=10
6
6
command=/opt/docker/bin/service.d/tideways.sh
7
7
process_name=%(program_name)s
8
8
startsecs=0
9
- startretries=0
9
+ startretries=3
10
10
autostart=true
11
- autorestart=false
11
+ autorestart=true
12
12
stdout_logfile=/dev/stdout
13
13
stdout_logfile_maxbytes=0
14
14
stderr_logfile=/dev/stderr
You can’t perform that action at this time.
0 commit comments