123456789101112131415161718192021222324252627282930313233343536373839 |
- [Unit]
- Description=PostgreSQL database server
- After=network.target
- [Service]
- Type=forking
- User=postgres
- Group=postgres
- OOMScoreAdjust=-1000
- Environment=PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj
- Environment=PG_OOM_ADJUST_VALUE=0
- Environment=PGSTARTTIMEOUT=270
- Environment=PGDATA=/data/pgsql
- ExecStart=/usr/local/pgsql/bin/pg_ctl start -D ${PGDATA} -s -w -t ${PGSTARTTIMEOUT}
- ExecStop=/usr/local/pgsql/bin/pg_ctl stop -D ${PGDATA} -s -m fast
- ExecReload=/usr/local/pgsql/bin/pg_ctl reload -D ${PGDATA} -s
- TimeoutSec=300
- [Install]
- WantedBy=multi-user.target
|