2 Description=PostgreSQL database server
6 WantedBy=multi-user.target
12 # Disable OOM kill on the postmaster
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
21 # Give a reasonable amount of time for the server to start up/shut down