--- postgresql-9.3.orig	2014-12-01 07:58:16.520342256 +0100
+++ postgresql-9.3	2014-12-01 08:02:00.998345566 +0100
@@ -167,6 +167,7 @@
 		success "$PSQL_START"
 		touch "$lockfile"
 		echo $pid > "$pidfile"
+		chown postgres:postgres "$pidfile"
 		echo
 	else
 		failure "$PSQL_START"
