Skip to content

Commit

Permalink
Fix example recovery service to have restart=false
Browse files Browse the repository at this point in the history
  • Loading branch information
davmac314 committed Oct 22, 2024
1 parent ef2ce60 commit fab0a87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/linux/DINIT-AS-INIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,11 @@ end, we have:
There are two additional services, which are not depended on by any other service, and so do
not normally start at all:

- `recovery` - this service is started by Dinit if boot fails (and if the user when prompted
- `recovery` - this service is started by Dinit if boot fails (and if the user, when prompted,
then chooses the recovery option). It prompts for the root password and then provides a
shell.
shell. It has `restart = false` because once the administrator has finished repairing the system
configuration, they will exit the recovery shell, and at that point they should be offered the
various boot failure options (reboot etc) again.
- `single` - this is a "single user mode" startup service which simply runs a shell. An
unprivileged user cannot normally start this; doing so requires putting "single" on the
kernel command line. When the shell exits, the `chain-to` setting will cause normal
Expand Down
1 change: 1 addition & 0 deletions doc/linux/services/recovery
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
type = process
command = /sbin/sulogin
options = runs-on-console
restart = false

0 comments on commit fab0a87

Please sign in to comment.