|
|
|
|
|
by aftbit
1988 days ago
|
|
When my company started, we used tmux in PROD as a process supervisor. We had tons of lines like: while true; do ./runserver; sleep 10; done
in a shell script that would start a new server with one window per process. It got called from /etc/rc.local on boot IIRC.Deploys meant pulling the new code on the server (or maybe just editing it in vim right there), then just Ctrl-C in every terminal (or when I got lazier, `killall runserver`). This was back in 2010 or so... I have professionally come a long way in the intervening decade, and no longer have any PROD services running in tmux panes, but I definitely learned to love that tool. |
|
Anyway, that is saved to a 'backup.sh'
Then I have also,
And this is run automatically on @reboot via cron.