From 2b29a572bbe449d1a5b7f4fbf96b409b45fa9456 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 28 Oct 2026 14:10:00 -0500 Subject: [PATCH] Add Restart Process Managed By `process-compose` as a Unix TIL --- README.md | 3 +- ...tart-process-managed-by-process-compose.md | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 unix/restart-process-managed-by-process-compose.md diff --git a/README.md b/README.md index 542c4c1..915bc84 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ working across different projects via [VisualMode](https://www.visualmode.dev/). For a steady stream of TILs, [sign up for my newsletter](https://visualmode.kit.com/newsletter). -_1892 TILs and counting..._ +_1893 TILs and counting..._ See some of the other learning resources I work on: @@ -1898,6 +1898,7 @@ If you've learned something here, support my efforts writing daily TILs by - [Rename A Bunch Of Files By Constructing mv Commands](unix/rename-a-bunch-of-files-by-constructing-mv-commands.md) - [Repeat Yourself](unix/repeat-yourself.md) - [Replace Pattern Across Many Files In A Project](unix/replace-pattern-across-many-files-in-a-project.md) +- [Restart Process Managed By `process-compose`](unix/restart-process-managed-by-process-compose.md) - [Restart Specific Overmind Process](unix/restart-specific-overmind-process.md) - [Reverse Each Line Of A File](unix/reverse-each-line-of-a-file.md) - [Run A Command Repeatedly Several Times](unix/run-a-command-repeatedly-several-times.md) diff --git a/unix/restart-process-managed-by-process-compose.md b/unix/restart-process-managed-by-process-compose.md new file mode 100644 index 0000000..12ee5d7 --- /dev/null +++ b/unix/restart-process-managed-by-process-compose.md @@ -0,0 +1,28 @@ +# Restart Process Managed By `process-compose` + +I'm working on a project where we are experimenting with +[`process-compose`](https://github.com/F1bonacc1/process-compose) as a better +way orchestrate a set of processes that all need to be running for a web +development server (Rails) to work. This includes the Rails server itself, a +JavaScript build process, PostgreSQL, a background worker process, etc. + +In the past [I've used `overmind` with +Procfiles](/rails/run-dev-processes-with-overmind-instead-of-foreman.md) to do a +similar sort of thing. No matter what tooling is in play, from time to time, I +will eventually need to restart one of the processes that has become stale. + +The `vite` (JavaScript build) process is a good example of this. Configuration +changes, new `npm` dependencies, and tailwind classes on new files can all lead +to the build being stale. + +From the `process-compose` TUI, I can navigate the cursor over the `vite` +process and hit `Ctrl-r` to restart the process. + +I can also issue a restart via the CLI like so: + +``` +❯ mise exec -- process-compose process restart vite +Process vite restarted +``` + +[source](https://f1bonacc1.github.io/process-compose/cli/process-compose_process_restart/)