wget https://pypi.Python.org/packages/44/80/d28047d120bfcc8158b4e41127706731ee6a3419c661e0a858fb0e7c4b2d/supervisor-3.3.0.tar.gz
安装:python setup.py install
生成配置文件:echo_supervisord_conf >/etc/supervisord.conf
配置文件:
[program:semUrlScan]
command=java -jar /opt/sem_urlscan_task/sem_urlscan_task.jar
directory=/opt/sem_urlscan_task
autostart=true
autorestart=true
stderr_logfile=/opt/sem_urlscan_task/sem.error.log
stdout_logfile=/opt/sem_urlscan_task/sem.out.log
user=chao
stopsignal=INT
启动:supervisord -c /etc/supervisord.conf
查看状态 supervisorctl status