From 0a7189b8084e75ad36e36491ccffd2ad1e0b7f34 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 17 Mar 2015 17:02:28 +0100 Subject: postgresql-ctl: fix SCLs & SELinux * postgresql.init.in: Use 'postgres' binary instead of 'postmaster', because it has proper selinux context. * postgresql.service.in: Use postgresql-ctl everywhere, to make sure that correct selinux context is used even with SCL. --- postgresql.init.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'postgresql.init.in') diff --git a/postgresql.init.in b/postgresql.init.in index b3bd560..aadd3dd 100644 --- a/postgresql.init.in +++ b/postgresql.init.in @@ -87,7 +87,7 @@ script_result=0 start() { - [ -x "$PGENGINE/postmaster" ] || exit 5 + [ -x "$PGENGINE/postgres" ] || exit 5 PSQL_START=$"Starting ${NAME} service: " @@ -114,7 +114,7 @@ start() # postmaster is down. This just unnecessarily wastes time and generates # too much (false) rush in $PGLOG. run_cmd_as_dbadmin \ - "$PGENGINE/postmaster ${PGPORT+-o "-p $PGPORT"} \ + "$PGENGINE/postgres ${PGPORT+-o "-p $PGPORT"} \ -D '$PGDATA' ${PGOPTS} &" \ "$PGLOG" "$PGLOG" @@ -207,7 +207,7 @@ case "$1" in stop ;; status) - status -p "$pidfile" postmaster + status -p "$pidfile" postgres script_result=$? ;; restart) -- cgit