aboutsummaryrefslogtreecommitdiffstats
path: root/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf
blob: 6f03c1fe870c2f20790efffa6f0e7b9e260d2879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# PGaaS - PostgreSQL as a Service
#
# The PGaaS init process needs a directory to be created on reboot
#
# The best way to do this is to have a file in /usr/lib/tmpfiles.d/pgaas:
#	d /var/run/postgresql 2755 postgres postgres -
#
# This is a workaround because systemd-tmpfiles is not present.

description	"PGaaS /var/run/postgresql setup"

start on runlevel [2345]
stop on runlevel [!2345]

umask 022

pre-start script
    mkdir -p /var/run/postgresql
    chown postgres:postgres /var/run/postgresql
end script

script
    :
end script