We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf17ce0 commit fc9e8b2Copy full SHA for fc9e8b2
nix/tools/run-server.sh.in
@@ -56,7 +56,11 @@ start_postgres() {
56
}
57
58
stop_postgres() {
59
- pg_ctl stop -D "$DATDIR" -m fast
+ if [ "$DAEMONIZE" = true ]; then
60
+ echo "PostgreSQL is running in daemon mode. Please stop it using pg_ctl."
61
+ else
62
+ pg_ctl stop -D "$DATDIR" -m fast
63
+ fi
64
65
66
trap 'stop_postgres' SIGINT SIGTERM
@@ -331,6 +335,7 @@ EOSQL
331
335
fi
332
336
333
337
echo "Shutting down PostgreSQL..."
338
+
334
339
stop_postgres
340
341
# Step 4: Restart PostgreSQL in the foreground (with log output visible) or as a daemon
0 commit comments