在supervisord.conf里面是这样的
[program:ElasticSearch]
command=/etc/init.d/elasticsearch start
user=root
stdout_logfile=/var/log/ES-out.log
stderr_logfile=/var/log/ES-err.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=600
当我执行时
/etc/init.d/supervisor restart
它运行顺利,但日志看起来像这样
2016-11-23 14:39:38,873 INFO supervisord started with pid 2737
2016-11-23 14:39:39,875 INFO spawned: 'ElasticSearch' with pid 2758
2016-11-23 14:39:39,908 INFO exited: ElasticSearch (exit status 0; not expected)
2016-11-23 14:39:40,910 INFO spawned: 'ElasticSearch' with pid 2805
2016-11-23 14:39:40,934 INFO exited: ElasticSearch (exit status 0; not expected)
2016-11-23 14:39:42,937 INFO spawned: 'ElasticSearch' with pid 2822
2016-11-23 14:39:42,967 INFO exited: ElasticSearch (exit status 0; not expected)
2016-11-23 14:39:45,971 INFO spawned: 'ElasticSearch' with pid 2860
2016-11-23 14:39:45,991 INFO exited: ElasticSearch (exit status 0; not expected)
2016-11-23 14:39:46,992 INFO gave up: ElasticSearch entered FATAL state, too many start retries too quickly
为什么?我怎样才能像这样从 /etc/init.d 运行应用程序?