This repository was archived by the owner on Dec 2, 2020. It is now read-only.
Commit be98dd1
committed
Kill stale pidfiles before starting the service
If you kill postgres badly, it leaves a `postmaster.pid` file lying
around which prevents the service from starting later. This gets in the
way of development, causes confusion, and *burns battery* as launchd
tries again and again to start postgres.
There are potential consequences to this in the case of a corrupt
database, but they're so unlikely that I much prefer to err on the side
of convenience for a developer machine.1 parent bc9c26b commit be98dd1
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
0 commit comments