2 Description=PostgreSQL database server
11 Environment=PGROOT=<%= @base_path %>/%i/postgresql
13 SyslogIdentifier=postgres
14 PIDFile=<%= @base_path %>/%i/postgresql/postmaster.pid
15 RuntimeDirectory=postgresql
16 RuntimeDirectoryMode=755
18 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}
19 ExecStart= /usr/bin/pg_ctl -s -D ${PGROOT} start -w -t 120
20 ExecReload=/usr/bin/pg_ctl -s -D ${PGROOT} reload
21 ExecStop= /usr/bin/pg_ctl -s -D ${PGROOT} stop -m fast
23 # Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in
24 # killing Postgres, so adjust it downward
27 # Additional security-related features
34 WantedBy=multi-user.target