Split supervisor config file

This commit is contained in:
dpedu 2015-05-03 16:25:12 -07:00
parent 10d9ea57e3
commit 907ee3b1a5
7 changed files with 25 additions and 20 deletions

View File

@ -32,7 +32,11 @@ RUN crontab -u znc /tmp/crontab
RUN rm /tmp/crontab
# Install startup stuff
COPY daemons.conf /etc/supervisor/conf.d/daemons.conf
COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf
COPY nginx.conf /etc/supervisor/conf.d/nginx.conf
COPY cron.conf /etc/supervisor/conf.d/cron.conf
COPY znc.conf /etc/supervisor/conf.d/znc.conf
COPY sshd.conf /etc/supervisor/conf.d/sshd.conf
COPY start /start
RUN chmod +x /start
@ -40,3 +44,4 @@ RUN chmod +x /start
EXPOSE 22
# nginx
EXPOSE 80

4
cron.conf Normal file
View File

@ -0,0 +1,4 @@
[program:cron]
command=/usr/sbin/cron -f
autorestart=true

View File

@ -1,19 +0,0 @@
[supervisord]
nodaemon=true
[program:sshd]
command=/usr/sbin/sshd -D
autorestart=true
[program:znc]
command=su -c "/usr/bin/znc --foreground" znc
autorestart=true
[program:cron]
command=/usr/sbin/cron -f
autorestart=true
[program:nginx]
command=/usr/sbin/nginx
autorestart=true

4
nginx.conf Normal file
View File

@ -0,0 +1,4 @@
[program:nginx]
command=/usr/sbin/nginx
autorestart=true

4
sshd.conf Normal file
View File

@ -0,0 +1,4 @@
[program:sshd]
command=/usr/sbin/sshd -D
autorestart=true

3
supervisor.conf Normal file
View File

@ -0,0 +1,3 @@
[supervisord]
nodaemon=true

4
znc.conf Normal file
View File

@ -0,0 +1,4 @@
[program:znc]
command=su -c "/usr/bin/znc --foreground" znc
autorestart=true