Commit 5c5135f
authored
`do run` used to run the given command with mosh instead of ssh, but
this is annoying for bulk maintenance tasks, because mosh takes over the
whole screen, has no scrollback, and the output disappears when
complete. this patch adds `do mosh` that runs mosh for one server, and
makes `do run` just use ssh. for example, some typical commands:
```
$ cd server/nixos
$ ./do run ci{0..4} -- rm -v /config/monitor/data/profiles/\*/snapshot
$ ./do mosh ci0 tmux new journalctl -afu monitor
```
`do restart-monitor` restarts monitor.service, but when reconfiguring
the queue or updating the GitHub API token, we also need to restart
queue.service. this patch adds a `do restart-queue` command for use in
those situations. for example, to update the GitHub API token, edit
`server/nixos/*/.env` and then run the following:
```
$ cd server/nixos
$ ./do restart-monitor ci{0..4}
$ ./do restart-queue ci0
```
1 parent ee6300a commit 5c5135f
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
48 | | - | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
58 | | - | |
| 70 | + | |
59 | 71 | | |
60 | 72 | | |
61 | 73 | | |
0 commit comments