diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2015-03-19 08:56:37 +0100 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2015-03-19 08:56:37 +0100 |
commit | 00b185f55bf37dfb5c29220218ff6e4a078a71db (patch) | |
tree | d6cfa80dbd0c2d1d03692615aa887fa53fb65e40 | |
parent | f4cc12884c91a3edd17fa6a19b8ea4d50226597c (diff) | |
download | postgresql-setup-00b185f55bf37dfb5c29220218ff6e4a078a71db.tar.gz postgresql-setup-00b185f55bf37dfb5c29220218ff6e4a078a71db.tar.xz postgresql-setup-00b185f55bf37dfb5c29220218ff6e4a078a71db.zip |
initscript: always use run_cmd_as_dbadmin
Per hhorak's review.
* postgresql.init.in (SU_POSTGRES): Remove unused variable.
(reload): Use run_cmd_as_dbadmin.
-rw-r--r-- | postgresql.init.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/postgresql.init.in b/postgresql.init.in index bf2e9ca..70058d6 100644 --- a/postgresql.init.in +++ b/postgresql.init.in @@ -51,8 +51,6 @@ then NAME=${NAME:3} fi -SU_POSTGRES="@SU_POSTGRES@" - # Set defaults for configuration variables PGENGINE=@bindir@ @@ -171,7 +169,8 @@ condrestart(){ reload() { - $SU_POSTGRES -c "@SCL_SOURCE@ $PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null + run_cmd_as_dbadmin "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" \ + /dev/null /dev/null } __single_comand() |