Has any one produced an Upstart script for pgagent on Ubuntu? I tried with the following: <code> description "Pgagent process control script" author "Me" start on started-postgres stop on stopped-postgres expect daemon respawn script su - postgres pgagent "dbname=postgres user=postgres" end script </code> I also added an 'initctl emit started-postgres' to the pogstres-8.4 init.d and script and the corresponding stopped-postgres. Whether I specify 'expect daemon', 'expect fork', or nothing, the command 'sudo initctl start pgagent' hangs at the commandline and doesn't start the daemon. The stop command hangs also. The 'pgagent "dbname=postgres user=postgres"' works normally if issued from the terminal prompt. I know the command is supposedto be issued from a normal user account, but shouldn't the su- command accomplish that? Brian
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера