In ubuntu 20.04 package, "repmgr standby switchover" seems to have wrong "actions" commands
Opened this issue · 0 comments
dko-slapdash commented
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
$ repmgr node service --list-actions
Following commands would be executed for each action:
start: "pg_ctl -w -D '/var/lib/postgresql/13/main' start"
stop: "pg_ctl -D '/var/lib/postgresql/13/main' -W -m fast stop"
restart: "pg_ctl -w -D '/var/lib/postgresql/13/main' restart"
reload: "pg_ctl -w -D '/var/lib/postgresql/13/main' reload"
promote: "pg_ctl -w -D '/var/lib/postgresql/13/main' promote"
In the docs, it's said that for systemd (and thus ubuntu), it's better to use systemctl
based commands. But the deb package doesn't set it as default when installing (and pg_ctl
doesn't seem to work - no pg_ctl
in default PATH).
I think there are 2 options here:
- In the package for Ubuntu, change the default values for these actions.
- Pre-create /etc/repmgr.conf with the proper values.