HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //proc/thread-self/root/etc.defaults/init/pgsql.conf
description  "start pgsql"
author  "System Integration Team"
console log

kill signal SIGQUIT
respawn
respawn limit 5 10
oom score -999

setuid postgres
setgid postgres

exec /usr/bin/postgres -D /var/services/pgsql

pre-stop script
	PGDATA=/var/services/pgsql
	/usr/bin/pg_ctl -s -D $PGDATA stop -m fast -t 60
	/usr/bin/pg_isready
	if [ $? -le 2 ]; then
		/usr/bin/pg_ctl -s -D $PGDATA stop -m immediate -t 60
	fi
end script