Supervising services with tmux

Properly configuring your service manager is good and all, but sometimes I just want to start a few services on startup and be able to tinker with them as I go. My solution is just to run my stuff in a tmux. I mean, this is a shell script. You can specify things and wait for readiness in whatever way you wish. #!/bin/sh set -ux session="tmuxsvc" tmux has-session -t "$session" 2>/dev/null && { tmux…