Updated supervisor files

This commit is contained in:
Lee Ween Jiann
2021-03-23 23:18:29 +08:00
parent c0350de418
commit f16815e960
4 changed files with 10 additions and 13 deletions

View File

@@ -73,7 +73,7 @@ RUN set -eux; \
COPY entrypoint.sh /usr/local/bin/docker-entrypoint
COPY ./config/php/php.ini /usr/local/etc/php/conf.d/in-php.ini
COPY ./config/supervisor/supervisord.conf /
COPY ./config/supervisor/* /
## Separate user
ARG UID=1500
@@ -88,8 +88,7 @@ RUN addgroup --gid=$UID -S "$INVOICENINJA_USER" \
--no-create-home \
"$INVOICENINJA_USER" \
&& chmod +x /usr/local/bin/docker-entrypoint \
&& mkdir /app /var/log/supervisord \
&& chown -R "$INVOICENINJA_USER":"$INVOICENINJA_USER" /app \
&& chmod +x /shutdown.sh \
&& chown -R "$INVOICENINJA_USER":"$INVOICENINJA_USER" /var/www/app
USER $UID

View File

@@ -1,8 +0,0 @@
#!/bin/bash
printf "READY\n";
while read line; do
echo "Processing Event: $line" >&2;
kill -SIGQUIT $PPID
done < /dev/stdin

View File

@@ -0,0 +1,8 @@
#!/bin/sh
printf "READY\n"
while read line; do
echo "Processing Event: $line" >&2
kill -SIGQUIT $PPID
done </dev/stdin

View File

@@ -15,7 +15,6 @@ stderr_logfile_maxbytes=0
command=php-fpm
[program:scheduler]
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/dev/stdout
@@ -26,7 +25,6 @@ command=php artisan schedule:work
[program:queue-worker]
process_name=%(program_name)s_%(process_num)02d
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/dev/stdout