diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2015-03-17 17:02:28 +0100 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2015-03-18 08:47:27 +0100 |
commit | 0a7189b8084e75ad36e36491ccffd2ad1e0b7f34 (patch) | |
tree | 839c24f15f298b37f3723207c64f3b511e9a6eb1 /postgresql.init.in | |
parent | 124140f530d07a951a96be21d1a3cce406c38f0b (diff) | |
download | postgresql-setup-0a7189b8084e75ad36e36491ccffd2ad1e0b7f34.tar.gz postgresql-setup-0a7189b8084e75ad36e36491ccffd2ad1e0b7f34.tar.xz postgresql-setup-0a7189b8084e75ad36e36491ccffd2ad1e0b7f34.zip |
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.
Diffstat (limited to 'postgresql.init.in')
-rw-r--r-- | postgresql.init.in | 6 |
1 files changed, 3 insertions, 3 deletions
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) |