supervisor遇到的坑

今天在給服務器安裝supervisor的時候遇到了一些坑,花了好長時間才跳過去!
首先,supervisor的被監控進程必須是前臺運行的,所以nohub和&的程序是不能被監控的 ;不然就會出現如下情況:

2018-10-18 23:29:14,364 WARN received SIGTERM indicating exit request
2018-10-18 23:29:43,331 INFO Included extra file "/home/gaofeng/etc/supervisor/config.d/frps.ini" during parsing
2018-10-18 23:29:43,367 INFO RPC interface 'supervisor' initialized
2018-10-18 23:29:43,367 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2018-10-18 23:29:43,368 INFO daemonizing the supervisord process
2018-10-18 23:29:43,368 INFO supervisord started with pid 125150
2018-10-18 23:29:44,381 INFO spawned: 'frps' with pid 125161
2018-10-18 23:29:44,400 INFO exited: frps (exit status 0; not expected)
2018-10-18 23:29:45,403 INFO spawned: 'frps' with pid 125168
2018-10-18 23:29:45,416 INFO exited: frps (exit status 0; not expected)
2018-10-18 23:29:47,426 INFO spawned: 'frps' with pid 125178
2018-10-18 23:29:47,447 INFO exited: frps (exit status 0; not expected)
2018-10-18 23:29:51,404 INFO spawned: 'frps' with pid 125188
2018-10-18 23:29:51,413 INFO exited: frps (exit status 0; not expected)
2018-10-18 23:29:51,413 INFO gave up: frps entered FATAL state, too many start retries too quickly
2018-10-18 23:45:35,836 WARN received SIGTERM indicating exit request

supervisor遇到的坑
supervisor遇到的坑

這裏的的意思就是啓動了進程,但是無法監控狀態,一直給你啓動,然後就這樣了,
你需要做的就是把用前臺啓動就好了,
於是我把配置文件改成了
supervisor遇到的坑
這樣就沒問題了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章