diff options
Diffstat (limited to 'pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf')
-rw-r--r-- | pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf b/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf new file mode 100644 index 0000000..6f03c1f --- /dev/null +++ b/pgaas/src/stage/opt/app/pgaas/init/init-pgaas-init.conf @@ -0,0 +1,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 |