Inspiration

foreman is awful at killing processes. Sometimes you just have to brute force it. But that's a lot of work to do by hand: finding the processes, killing each PID. It's a recipe for RSI.

How it works

listprocs finds all the processes in your Procfile. It finds processes matching the YAML key for each line and outputs it to STDOUT.

killprocs takes the output of listprocs, gets the PIDs, and kills them with super-user privileges. Because we all put sudo in our Procfiles, right?

Challenges I ran into

sed, awk, and newline characters.

Accomplishments that I'm proud of

I can now kill lingering processes with one command.

What I learned

A little bit about sed, awk, and tr.

What's next for killprocs

Go ahead and use it!

Built With

Share this project:

Updates