Reference

pglistener-update(1)

postgres listener.

NAME

pglistener-update - postgres listener.

DESCRIPTION

pglistener-update is a daemon that generates files from Postgres database.

It is a tool that listens for notifies from a Postgres database and then calls out to a number of hooks which do everything from updating the password database to updating accounts in RT.

USAGE

Config and hooks live under:

    /var/lib/pglistener
    /var/lib/pglistener/hooks
    /etc/pglistener
    /etc/pglistener/conf.d

It is fine to restart postgres while pglistener is running.

If pglistener crashes for whatever reason, it can be restarted as a normal service.

Pglistener can in general be restarted at any time, it's quick to start and there are no interruptions to services or authentication.

SETTING UP

Install a usable pglistener config in /etc/pglistener/pglistener.conf and should be mode 600, user pglistener.

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

Make sure pam_mkhomedir is set up, /etc/pam.d/common-session should contain:

    session required pam_mkhomedir.so

AUTHOR

The pglistener-update was written by Rob Bradford <[email protected]>, Robert McQueen <[email protected]>, Dafydd Harries <[email protected]>, Tollef Fog Heen <[email protected]>, Maxime Buquet <[email protected]>, Jordi Mallach <[email protected]>, Vivek Das Mohapatra <[email protected]> Paulo Henrique de Lima Santana <[email protected]> Bruna Pinos de Oliveira <[email protected]> Mark Kennedy <[email protected]> Stelios Milidonis <[email protected]>

For a complete list of authors, please open AUTHORS file.

This manual page was written by Paulo Henrique de Lima Santana (phls) <[email protected]> for the Debian project (but may be used by others).

History