ADD cron /etc/service/cron/run
ADD rsyslog /etc/service/rsyslog/run
ADD cron.d_anacron /etc/cron.d/anacron
-ADD redis /etc/service/redis/run
# Discourse specific bits
RUN useradd discourse -s /bin/bash -m -U &&\
+++ /dev/null
-#!/bin/sh
-set -e
-
-RUNDIR=/var/run/redis
-PIDFILE=/var/run/redis/redis-server.pid
-
-mkdir -p $RUNDIR
-touch $PIDFILE
-chown -R redis:redis $RUNDIR
-chmod 755 $RUNDIR
-
-exec chpst -u redis /usr/bin/redis-server /etc/redis/redis.conf
contents: |
#!/bin/sh
exec 2>&1
+
+ RUNDIR=/var/run/redis
+ PIDFILE=/var/run/redis/redis-server.pid
+
+ mkdir -p $RUNDIR
+ touch $PIDFILE
+ chown -R redis:redis $RUNDIR
+ chmod 755 $RUNDIR
+
exec thpoff chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
- file:
path: /etc/service/redis/log/run