配置

[program:xx]
priority=1 ; 数字越小,优先级越小,最先启动
directory=/usr/local/newproject/123-123/bin
command=/usr/java/latest/bin/java -cp ../lib/*:../dist/*:../config/:. net.123.server.cs.boot.ServerRun
autostart=true
autorestart=true
startretries=2
exitcodes=0,2 ;也是默认的数字
stopsignal=TERM ; 这个最狠,是10,我们都知道kill -9 这个更牛逼~
stopasgroup=true        ; 是否想UNIX进程组发送结束信号 (default false)
killasgroup=true             ; SIGKILL UNIX 进
stderr_logfile=/data/logs/123-123.error.log
stdout_logfile=/data/logs/123-123.info.log

命令

supervisorctl reload
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""