pglistener-update(1)
π pglistener-update(1) β the postgres listener page bestie π
okay so we're doing the manual page for pglistener-update, aka the postgres listener. yes it's a manpage. no it does not have to be boring. let's go β¨
πΈ NAME πΈ
pglistener-update β postgres listener. that's it, that's the name, short and iconic π
π DESCRIPTION π
so pglistener-update is a daemon that generates files from a Postgres database. yes, a daemon. it's giving background-process main character energy π¦
it's a tool that listens for notifies from a Postgres database, and then β this is the fun part β it calls out to a bunch of hooks that do everything from updating the password database to updating accounts in RT. like, it hears a notify and immediately goes "say less, i'm on it" π
β¨ USAGE β¨
config and hooks live under:
/var/lib/pglistener
/var/lib/pglistener/hooks
/etc/pglistener
/etc/pglistener/conf.d
good news bestie: it is fine to restart postgres while pglistener is running. no drama, no chaos π
and if pglistener crashes for whatever reason (it happens, we don't judge π), it can be restarted as a normal service. so casual.
in general? pglistener can be restarted at any time β it's quick to start, and there are no interruptions to services or authentication. we love a low-maintenance icon π«Ά
π SETTING UP π
first step: install a usable pglistener config in /etc/pglistener/pglistener.conf, and it should be mode 600, user pglistener. lock it down, bestie π
then make symlinks for databases in /var/lib/misc:
cd /var/lib/misc
ln -s ../pglistener/group.db
ln -s ../pglistener/passwd.db
ln -s ../pglistener/shadow.db
if you have ssh keys for everybody on the host, add the following two lines to /etc/ssh/sshd_config:
AuthorizedKeysFile /root/%u/.ssh/authorized_keys
AuthorizedKeysFile2 /var/lib/misc/sshkeys/%u
and make sure pam_mkhomedir is set up β /etc/pam.d/common-session should contain:
session required pam_mkhomedir.so
that's the whole setup, periodt β¨
π AUTHOR π
the pglistener-update was written by:
- Rob Bradford <rob@robster.org.uk>
- Robert McQueen <robert.mcqueen@bluelinux.co.uk>
- Dafydd Harries <dafydd.harries@collabora.co.uk>
- Tollef Fog Heen <tfheen@err.no>
- Maxime Buquet <pep@bouah.net>
- Jordi Mallach <jordi@debian.org>
- Vivek Das Mohapatra <vivek.dasmohapatra@collabora.com>
- Paulo Henrique de Lima Santana <phls@debian.org>
- Bruna Pinos de Oliveira <bruna.pinos@collabora.com>
- Mark Kennedy <mark.kennedy@collabora.com>
- Stelios Milidonis <stelios.milidonis@collabora.com>
for a complete list of authors, please open the AUTHORS file π
and this manual page was written by Paulo Henrique de Lima Santana (phls) <phls@debian.org> for the Debian project (but may be used by others). shoutout to phls, absolute legend π«Άπ
and that's the page, bestie!! this wasPGLISTENER-UPDATEversion 5.1, from Apr 2024, part of thepglistener-update(1)manual π go forth and listen to those notifies, no cap π
π¦ where this page comes from
- debian trixie: pglistener 5.2-2 Β· GPL-2.0-or-later
- ubuntu questing: pglistener 5.2-2
- ubuntu resolute: pglistener 5.2-3 Β· GPL-2.0-or-later
- ubuntu stonking: pglistener 5.2-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms