repmgr.service

Поиск
Список
Период
Сортировка
От Justin King
Тема repmgr.service
Дата
Msg-id CAL3i3zT1NXVTyO=jOSXTnj3Uch9T569-LMyehDrUYqn0X+g2=w@mail.gmail.com
обсуждение исходный текст
Ответы Re: repmgr.service  (Martín Marqués <martin@2ndquadrant.com>)
Список pgsql-pkg-yum
Please modify the repmgr-9.x.service files for the packages.

The service files currently have:

ExecStop=/usr/bin/kill -TERM ${PIDFILE}
ExecReload=/usr/bin/kill -HUP ${PIDFILE}

/bin/kill does not accept files, you may be thinking of /bin/pkill -f 

Replace them with:

ExecStop=/usr/bin/kill -TERM $MAINPID
ExecReload=/usr/bin/kill -HUP $MAINPID

$MAINPID is a special systemd provided variable that references the known PID of the process 

And add the following under the [Service] section:

PIDFile=/var/run/repmgr/repmgrd-9.x.pid

This prevents systemd from guessing what the PID is and being wrong when Type=forking 

As it stands now `systemctl stop repmgrd` and `systemctl reload repmgrd` will always fail.

Justin

В списке pgsql-pkg-yum по дате отправления:

Предыдущее
От: Scott Mugnaini
Дата:
Сообщение: Re: PostGIS 2.2
Следующее
От: rafael
Дата:
Сообщение: Re: Get PgBackMan into yum.postgresql.org