From 7940e6bf9f7153b16fe47c704ee138d9a8351785 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 21 Nov 2020 03:02:57 +0200 Subject: [PATCH] set --- startup.sh | 2 +- supervisord-iot.conf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index 24ceff6..de03f80 100644 --- a/startup.sh +++ b/startup.sh @@ -141,6 +141,6 @@ chmod -R 755 /home/$USER /home/$USER/crond/playground-sync.sh /home/$USER/crond/playground-npm-install.sh -/home/$USER/crond/playground-start.sh +#/home/$USER/crond/playground-start.sh /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf diff --git a/supervisord-iot.conf b/supervisord-iot.conf index 085af49..8f6dcf0 100644 --- a/supervisord-iot.conf +++ b/supervisord-iot.conf @@ -3,3 +3,7 @@ command=bash -c 'sleep 5 && cd /home/node && sudo -u node ttyd --ssl --ssl-cert stdout_logfile=/var/log/ttyd.log autorestart=true +[program:pm2] +command=bash -c 'sleep 5 && pm2-runtime /home/$USER/crond/playground.config.js ' +stdout_logfile=/var/log/pm2.log +autorestart=true