aboutsummaryrefslogtreecommitdiffstats
path: root/main/postgresql/postgresql.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/postgresql/postgresql.initd')
-rw-r--r--main/postgresql/postgresql.initd3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/postgresql/postgresql.initd b/main/postgresql/postgresql.initd
index 2de91d0df6..3452db8566 100644
--- a/main/postgresql/postgresql.initd
+++ b/main/postgresql/postgresql.initd
@@ -50,7 +50,8 @@ start() {
return 1
fi
- local pid=$(grep "^[0-9]\+" "$PGDATA/postmaster.pid")
+ local pid
+ read pid < "$PGDATA/postmaster.pid"
test -d /proc/"${pid}"
eend $?
}