xref: /OK3568_Linux_fs/buildroot/package/postgresql/postgresql.service (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun[Unit]
2*4882a593SmuzhiyunDescription=PostgreSQL database server
3*4882a593SmuzhiyunAfter=network.target
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun[Service]
6*4882a593SmuzhiyunType=notify
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun# start timeout disabled because initdb may run a little
9*4882a593Smuzhiyun# longer (eg. 5 minutes on RaspberryPi)
10*4882a593SmuzhiyunTimeoutStartSec=0
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunUser=postgres
13*4882a593SmuzhiyunGroup=postgres
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunStandardOutput=syslog
16*4882a593SmuzhiyunStandardError=syslog
17*4882a593SmuzhiyunSyslogIdentifier=postgres
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunExecStartPre=/bin/sh -c "if [ ! -f /var/lib/pgsql/PG_VERSION ]; then /usr/bin/pg_ctl initdb -D /var/lib/pgsql; fi"
20*4882a593SmuzhiyunExecStart=/usr/bin/postgres -D /var/lib/pgsql
21*4882a593SmuzhiyunExecReload=/usr/bin/kill -HUP $MAINPID
22*4882a593SmuzhiyunKillMode=mixed
23*4882a593SmuzhiyunKillSignal=SIGINT
24*4882a593SmuzhiyunTimeoutSec=0
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun[Install]
27*4882a593SmuzhiyunWantedBy=multi-user.target
28