diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-04-13 17:19:04 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-04-16 16:24:21 +0000 |
commit | 8d76e18a6debb4b421c5d443bc673f88abc7a8e6 (patch) | |
tree | 08785d33244c4efa9b6b3e973b938afc48340c4f /openstack/usr/lib/systemd/system/postgres-server.service | |
parent | ffd35eafd549a923f43569d12ec0fbd39a43cc46 (diff) | |
download | definitions-8d76e18a6debb4b421c5d443bc673f88abc7a8e6.tar.gz |
Openstack: Make Keystone configurable
Change-Id: Ic29d7c367622e0ab35486466e5e32ca432539c39
Signed-off-by: Pedro Alvarez <pedro.alvarez@codethink.co.uk>
Signed-off-by: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk>
Diffstat (limited to 'openstack/usr/lib/systemd/system/postgres-server.service')
-rw-r--r-- | openstack/usr/lib/systemd/system/postgres-server.service | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/openstack/usr/lib/systemd/system/postgres-server.service b/openstack/usr/lib/systemd/system/postgres-server.service new file mode 100644 index 00000000..70b2fd09 --- /dev/null +++ b/openstack/usr/lib/systemd/system/postgres-server.service @@ -0,0 +1,25 @@ +[Unit] +Description=PostgreSQL database server +After=network.target + +[Service] +Type=forking +TimeoutSec=120 +User=postgres +Group=postgres + +Environment=PGROOT=/var/lib/pgsql + +SyslogIdentifier=postgres +PIDFile=/var/lib/pgsql/data/postmaster.pid + +ExecStart= /usr/bin/pg_ctl -s -D ${PGROOT}/data start -w -t 120 +ExecReload=/usr/bin/pg_ctl -s -D ${PGROOT}/data reload +ExecStop= /usr/bin/pg_ctl -s -D ${PGROOT}/data stop -m fast + +# Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in +# killing Postgres, so adjust it downward +OOMScoreAdjust=-200 + +[Install] +WantedBy=multi-user.target |