Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-cloud / recipes-support / puppet / files / puppetlabs-postgresql / postgresql.service
1 [Unit]
2 Description=PostgreSQL database server
3 After=network.target
4
5 [Install]
6 WantedBy=multi-user.target
7
8 [Service]
9 Type=forking
10 User=postgres
11 Group=postgres
12 # Disable OOM kill on the postmaster
13 OOMScoreAdjust=-17
14
15 PermissionsStartOnly=true
16 ExecStartPre=-/etc/postgresql/postgresql-init initdb
17 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o "-p ${PGPORT}" -w -t 300
18 ExecStop=/usr/bin/pg_ctl stop -D ${PGDATA} -s -m fast
19 ExecReload=/usr/bin/pg_ctl reload -D ${PGDATA} -s
20
21 # Give a reasonable amount of time for the server to start up/shut down
22 TimeoutSec=300