Merge pull request #1252 from xzilla/patch-1

Make Postgres name use consistent
pull/1258/head
Nils Winkler 2018-10-31 16:09:08 +01:00 committed by GitHub
commit db5bf50a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -20,23 +20,23 @@ done
function postgres_start { function postgres_start {
about 'Starts PostgresSQL server' about 'Starts PostgreSQL server'
group 'postgres' group 'postgres'
echo 'Starting PostgresSQL Server....'; echo 'Starting Postgres....';
$POSTGRES_BIN/pg_ctl -D $PGDATA -l $PGDATA/logfile start $POSTGRES_BIN/pg_ctl -D $PGDATA -l $PGDATA/logfile start
} }
function postgres_stop { function postgres_stop {
about 'Steps PostgresSQL server' about 'Stops PostgreSQL server'
group 'postgres' group 'postgres'
echo 'Stopping PostgresSQL Server....'; echo 'Stopping Postgres....';
$POSTGRES_BIN/pg_ctl -D $PGDATA -l $PGDATA/logfile stop -s -m fast $POSTGRES_BIN/pg_ctl -D $PGDATA -l $PGDATA/logfile stop -s -m fast
} }
function postgres_status { function postgres_status {
about 'Returns status of PostgresSQL server' about 'Returns status of PostgreSQL server'
group 'postgres' group 'postgres'
# $POSTGRES_BIN/pg_ctl -D $PGDATA status # $POSTGRES_BIN/pg_ctl -D $PGDATA status
@ -55,7 +55,7 @@ function is_postgres_running {
function postgres_restart { function postgres_restart {
about 'Restarts status of PostgresSQL server' about 'Restarts status of PostgreSQL server'
group 'postgres' group 'postgres'
echo 'Restarting Postgres....'; echo 'Restarting Postgres....';