postgresql: update to 8.4.10, systemd switch.
This commit is contained in:
parent
782694cd41
commit
f151ae9f47
13 changed files with 101 additions and 173 deletions
20
srcpkgs/postgresql/files/postgresql.service
Normal file
20
srcpkgs/postgresql/files/postgresql.service
Normal file
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=PostgreSQL database server
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
SyslogIdentifier=postgres
|
||||
PIDFile=/var/lib/postgresql/data/postmaster.pid
|
||||
|
||||
# initdb script takes care for symlinking $PGROOT to /var/lib/postgres
|
||||
ExecStartPre=/lib/systemd/scripts/postgresql-initdb
|
||||
ExecStart= /bin/su - postgres -m -c "/usr/bin/pg_ctl -s -D /var/lib/postgresql/data start"
|
||||
ExecReload=/bin/su - postgres -m -c "/usr/bin/pg_ctl -s -D /var/lib/postgresql/data reload"
|
||||
ExecStop= /bin/su - postgres -m -c "/usr/bin/pg_ctl -s -D /var/lib/postgresql/data stop -m fast"
|
||||
|
||||
# Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in
|
||||
# killing Postgres
|
||||
OOMScoreAdjust=-200
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue