yum install -y epel-release
yum install -y supervisor
/etc/init.d/supervisord restart
[root@zabbix ~]# vim /etc/supervisord.conf
[program:eatjoys]
directory=/work/service/eatjoys
command=java -Xmn512m -Xms768m -Xmx1024m -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
autostart=true
autorestart=true
stdout_logfile=/var/logs/eatjoys.log
stderr_logfile=/var/logs/eatjoys.log
[root@kaifa-develop ~]# supervisorctl
default commands (type help ):
add exit open reload restart start tail
avail fg pid remove shutdown status update
clear maintail quit reread signal stop version