I have a headless server that sits in the corner and runs all my self-hosted apps. I run them all in screen sessions, so I can easily ssh in and restart them, or turn some on and others off. This works really well until we have a power blip, and I have to log back in and set up 5 more sessions.

Is there a convenient way to spin up screen sessions at startup, and then run scripts in each of them?

I’m running stock Ubuntu.

#selfhosting #linux

@jnkrtech I've adapted the tmux sessionizer scrip from prime to do basically that. There might be a way to do something like this with screen. https://github.com/ThePrimeagen/tmux-sessionizer
GitHub - ThePrimeagen/tmux-sessionizer

Contribute to ThePrimeagen/tmux-sessionizer development by creating an account on GitHub.

GitHub
@Tebz I hadn’t heard of tmux before, I’ll look into this. Thank you!