From bbe28fa67a4cf17ede462acef3c73f341b0b2bfe Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 21 Nov 2020 16:39:36 +0200 Subject: [PATCH] set --- supervisord-iot.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/supervisord-iot.conf b/supervisord-iot.conf index 8f6dcf0..f3ee434 100644 --- a/supervisord-iot.conf +++ b/supervisord-iot.conf @@ -7,3 +7,17 @@ autorestart=true command=bash -c 'sleep 5 && pm2-runtime /home/$USER/crond/playground.config.js ' stdout_logfile=/var/log/pm2.log autorestart=true + + +[program:nginx] +command=/usr/sbin/nginx -g "daemon off;" +autostart=true +autorestart=true +startretries=5 +#numprocs=1 +#startsecs=0 +#process_name=%(program_name)s_%(process_num)02d +stderr_logfile=/var/log/%(program_name)s_stderr.log +stderr_logfile_maxbytes=10MB +stdout_logfile=/var/log/%(program_name)s_stdout.log +stdout_logfile_maxbytes=10MB