to: sv start postgres || exit 1
run:
+ - exec: apt-get remove -y postgresql-12 postgresql-client-12 postgresql-contrib-12
+ - exec: apt-get update && apt-get install -y postgresql-10 postgresql-client-10 postgresql-contrib-10
- exec: mkdir -p /shared/postgres_run
- exec: chown postgres:postgres /shared/postgres_run
- exec: chmod 775 /shared/postgres_run
contents: |
#!/bin/sh
exec 2>&1
+ echo -1000 >/proc/self/oom_score_adj
HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main
- file: