소스 검색

Add supervisor scripts for ftp and apache

Johannes Zellner 9 년 전
부모
커밋
5d2363400e
2개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      supervisor/apache2.conf
  2. 10 0
      supervisor/ftp.conf

+ 12 - 0
supervisor/apache2.conf

@@ -0,0 +1,12 @@
+[program:apache2]
+autorestart=true
+autostart=true
+user=www-data
+command=/usr/bin/pidproxy /var/run/apache2/apache2.pid /bin/bash -c "source /etc/apache2/envvars && /usr/sbin/apache2 -DFOREGROUND"
+environment=APACHE_CONFDIR=""
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stderr_logfile=/dev/stderr
+stderr_logfile_maxbytes=0
+stopasgroup=true
+killasgroup=true

+ 10 - 0
supervisor/ftp.conf

@@ -0,0 +1,10 @@
+[program:ftp]
+directory=/app/code
+command=node ftp.js
+user=www-data
+autostart=true
+autorestart=true
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stderr_logfile=/dev/stderr
+stderr_logfile_maxbytes=0