https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
11 lines
292 B
Markdown
11 lines
292 B
Markdown
# Maintenance Mode {#sec-maintenance-mode}
|
|
|
|
You can enter rescue mode by running:
|
|
|
|
```ShellSession
|
|
# systemctl rescue
|
|
```
|
|
|
|
This will eventually give you a single-user root shell. Systemd will
|
|
stop (almost) all system services. To get out of maintenance mode, just
|
|
exit from the rescue shell.
|