mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Revert "pg_ctl: Add idempotent option"
This reverts commit 8730618458
. The
behavior in certain cases is still being debated, and it's too late to
solve this before beta.
This commit is contained in:
@ -89,12 +89,12 @@ case $1 in
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping PostgreSQL: "
|
||||
su - $PGUSER -c "$PGCTL stop -I -D '$PGDATA' -s -m fast"
|
||||
su - $PGUSER -c "$PGCTL stop -D '$PGDATA' -s -m fast"
|
||||
echo "ok"
|
||||
;;
|
||||
restart)
|
||||
echo -n "Restarting PostgreSQL: "
|
||||
su - $PGUSER -c "$PGCTL stop -I -D '$PGDATA' -s -m fast -w"
|
||||
su - $PGUSER -c "$PGCTL stop -D '$PGDATA' -s -m fast -w"
|
||||
test x"$OOM_SCORE_ADJ" != x && echo "$OOM_SCORE_ADJ" > /proc/self/oom_score_adj
|
||||
test x"$OOM_ADJ" != x && echo "$OOM_ADJ" > /proc/self/oom_adj
|
||||
su - $PGUSER -c "$DAEMON -D '$PGDATA' &" >>$PGLOG 2>&1
|
||||
|
Reference in New Issue
Block a user