summaryrefslogtreecommitdiff
path: root/rc.postgresql/postgresql-srv/data/check
diff options
context:
space:
mode:
Diffstat (limited to 'rc.postgresql/postgresql-srv/data/check')
-rwxr-xr-xrc.postgresql/postgresql-srv/data/check7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.postgresql/postgresql-srv/data/check b/rc.postgresql/postgresql-srv/data/check
new file mode 100755
index 0000000..bc8bb10
--- /dev/null
+++ b/rc.postgresql/postgresql-srv/data/check
@@ -0,0 +1,7 @@
+#!/bin/execlineb -P
+
+s6-envdir env
+importas -u PG_VERSION PG_VERSION
+pipeline { tail -n1 /var/lib/pgsql/${PG_VERSION}/data/postmaster.pid }
+pipeline { tr -d " \n" }
+xargs test ready =