Split supervisor config file

master
dpedu 8 years ago
parent 10d9ea57e3
commit 907ee3b1a5

@ -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

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

@ -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

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

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

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

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