diff options
Diffstat (limited to 'postgresql.service')
-rw-r--r-- | postgresql.service | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/postgresql.service b/postgresql.service index ad51b9397342..7916457bb4a1 100644 --- a/postgresql.service +++ b/postgresql.service @@ -16,10 +16,9 @@ RuntimeDirectory=postgresql RuntimeDirectoryMode=755 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}/data -ExecStart=/usr/bin/postgres -D ${PGROOT}/data -ExecReload=/bin/kill -HUP ${MAINPID} -KillMode=mixed -KillSignal=SIGINT +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 |