diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2016-07-22 08:20:28 +0200 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2016-07-22 08:20:28 +0200 |
commit | 3fcfb0e1f4cf535ce3356ecef32a21a9e9fc27b5 (patch) | |
tree | 21edbc3325b8df4933e943d257e685862ff890ae /postgresql.service.in | |
parent | 300dc14017f27bc2ea79c0bb01a627d84d7790f6 (diff) | |
download | postgresql-setup-master.tar.gz postgresql-setup-master.tar.xz postgresql-setup-master.zip |
Diffstat (limited to 'postgresql.service.in')
-rw-r--r-- | postgresql.service.in | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/postgresql.service.in b/postgresql.service.in deleted file mode 100644 index aac0054..0000000 --- a/postgresql.service.in +++ /dev/null @@ -1,50 +0,0 @@ -# It's not recommended to modify this file in-place, because it will be -# overwritten during package upgrades. It is recommended to use systemd -# "dropin" feature; i.e. create file with suffix .conf under -# @systemduserunitsdir@/UNITNAME.service.d directory overriding the -# unit's defaults. Look at systemd.unit(5) manual page for more info. - -[Unit] -Description=PostgreSQL database server -After=network.target - -[Service] -Type=forking - -User=postgres -Group=postgres - -# Where to send early-startup messages from the server (before the logging -# options of postgresql.conf take effect) -# This is normally controlled by the global default set by systemd -# StandardOutput=syslog - -# Disable OOM kill on the postmaster -OOMScoreAdjust=-1000 -# ... but allow it still to be effective for child processes -# (note that these settings are ignored by Postgres releases before 9.5) -Environment=PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj -Environment=PG_OOM_ADJUST_VALUE=0 - -# Maximum number of seconds pg_ctl will wait for postgres to start. Note that -# PGSTARTTIMEOUT should be less than TimeoutSec value. -Environment=PGSTARTTIMEOUT=270 - -@PGDATA_ENVIRONMENT@ - -ExecStartPre=@libexecdir@/postgresql-check-db-dir %N - -# 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 ${PGSTARTTIMEOUT} -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. -# Ideally, the timeout for starting PostgreSQL server should be handled more -# nicely by pg_ctl in ExecStart, so keep its timeout smaller than this value. -TimeoutSec=300 - -[Install] -WantedBy=multi-user.target |