mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Fix develop script pid tracking, improve logging and interrupt (#5186)
This commit is contained in:
+5
-2
@@ -169,8 +169,11 @@ func Server(vip *viper.Viper, newAPI func(context.Context, *coderd.Options) (*co
|
||||
defer func() {
|
||||
cmd.Printf("Stopping built-in PostgreSQL...\n")
|
||||
// Gracefully shut PostgreSQL down!
|
||||
_ = closeFunc()
|
||||
cmd.Printf("Stopped built-in PostgreSQL\n")
|
||||
if err := closeFunc(); err != nil {
|
||||
cmd.Printf("Failed to stop built-in PostgreSQL: %v\n", err)
|
||||
} else {
|
||||
cmd.Printf("Stopped built-in PostgreSQL\n")
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user