diff options
Diffstat (limited to 'postgresql.service.in')
-rw-r--r-- | postgresql.service.in | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/postgresql.service.in b/postgresql.service.in index 560114d..897f732 100644 --- a/postgresql.service.in +++ b/postgresql.service.in @@ -30,11 +30,12 @@ Environment=PG_OOM_ADJUST_VALUE=0 ExecStartPre=@libexecdir@/postgresql-check-db-dir %N -# Temporarily use postgresql-ctl wrapper around pg_ctl until there will -# exist clients which set PGPORT in service file. -ExecStart=@SCL_SHELL_WRAPPER@@libexecdir@/postgresql-ctl start -D ${PGDATA} -s -w -t 300 -ExecStop=@SCL_SHELL_WRAPPER@@bindir@/pg_ctl stop -D ${PGDATA} -s -m fast -ExecReload=@SCL_SHELL_WRAPPER@@bindir@/pg_ctl reload -D ${PGDATA} -s +# Use convenient postgresql-ctl wrapper instead of directly pg_ctl. See the +# postgresql-ctl file itself for more info. + +ExecStart=@libexecdir@/postgresql-ctl start -D ${PGDATA} -s -w -t 300 +ExecStop=@libexecdir@/postgresql-ctl stop -D ${PGDATA} -s -m fast +ExecReload=@libexecdir@/postgresql-ctl reload -D ${PGDATA} -s # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 |