zeus 4 years ago
parent
commit
7940e6bf9f
  1. 2
      startup.sh
  2. 4
      supervisord-iot.conf

2
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

4
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

Loading…
Cancel
Save