Skip to content

Commit

Permalink
YugaByte: actually kill postgres processes
Browse files Browse the repository at this point in the history
  • Loading branch information
aphyr committed Aug 16, 2019
1 parent 202e7a3 commit e35179f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions yugabyte/src/yugabyte/auto.clj
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@
(def ce-tserver-logfile (str ce-tserver-log-dir "/stdout"))
(def ce-tserver-pidfile (str dir "/tserver.pid"))

(def postgres-bin (str dir "/postgres/bin/postgres"))

(defn ce-shared-opts
"Shared options for both master and tserver"
[node]
Expand Down Expand Up @@ -411,7 +409,7 @@

(stop-tserver! [db]
(c/su (cu/stop-daemon! ce-tserver-bin ce-tserver-pidfile))
(c/su (cu/grepkill! postgres-bin)))
(c/su (cu/grepkill! "postgres")))

(wipe! [db]
(c/su (c/exec :rm :-rf ce-data-dir)))
Expand Down

0 comments on commit e35179f

Please sign in to comment.