supervisor开启postgresql

千里之行12 发布于 2017/04/25 22:40
阅读 1K+
收藏 0

想通过supervisor开机启动postgresql

supervisor配置文件

[program:postgresql_server]
command=/bin/bash -c "exec /usr/local/postgresql_9.6.2/bin/pg_ctl start -l /usr/local/postgresql_9.6.2/data/log/pg_server.log
directory=/usr/local/postgresql_9.6.2/bin"
autostart=true
autorestart=true
user = postgres

开机后supervisorctl status

postgresql_server                FATAL     can't parse command '/bin/bash -c "exec /usr/local/postgresql_9.6.2/bin/pg_ctl start -l /usr/local/postgresql_9.6.2/data/log/pg_server.log': No closing quotation

 

日志文件

2017-04-25 22:35:55,093 INFO supervisord started with pid 3641
2017-04-25 22:35:56,096 INFO spawnerr: can't parse command '/bin/bash -c "exec /usr/local/postgresql_9.6.2/bin/pg_ctl start -l /usr/local/postgresql_9.6.2/data/log/pg_server.log': No closing quotation
2017-04-25 22:35:57,098 INFO spawnerr: can't parse command '/bin/bash -c "exec /usr/local/postgresql_9.6.2/bin/pg_ctl start -l /usr/local/postgresql_9.6.2/data/log/pg_server.log': No closing quotation
2017-04-25 22:35:59,103 INFO spawnerr: can't parse command '/bin/bash -c "exec /usr/local/postgresql_9.6.2/bin/pg_ctl start -l /usr/local/postgresql_9.6.2/data/log/pg_server.log': No closing quotation
2017-04-25 22:36:02,111 INFO spawnerr: can't parse command '/bin/bash -c "exec /usr/local/postgresql_9.6.2/bin/pg_ctl start -l /usr/local/postgresql_9.6.2/data/log/pg_server.log': No closing quotation
2017-04-25 22:36:02,111 INFO gave up: postgresql_server entered FATAL state, too many start retries too quickly

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部