Bladeren bron

Add supervisor scripts for ftp and apache

Johannes Zellner 9 jaren geleden
bovenliggende
commit
5d2363400e
2 gewijzigde bestanden met toevoegingen van 22 en 0 verwijderingen
  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