Configure shutdown instructions in runit stage 3 #35

Merged
sb10q merged 1 commits from fsagbuya/nix-servo:recovery into master 2024-02-22 09:59:48 +08:00
Collaborator

Description

Added additional instructions for clean shutdown during poweroff/reboot

As referred from void linux, another linux distro that uses runit as its init system.

Reboot log:

-bash-5.2# reboot
-bash-5.2# - runit: leave stage: /etc/runit/2
- runit: enter stage: /etc/runit/3
Waiting for services to stop...
ok: down: /etc/service/sshd: 0s, normally up, want up
ok: down: /etc/service/getty: 1s, normally up
ok: down: /etc/service/nix: 1s, normally up
Sending TERM signal to processes...
Sending KILL signal to processes...
Unmounting filesystems, disabling swap...
[   28.133778] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: disabled.
Remounting rootfs read-only...
[   28.159920] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: disabled.
and down we go
- runit: leave stage: /etc/runit/3
- runit: sending KILL signal to all processes...
- runit: system reboot.
[   28.208198] reboot: Restarting system
<<< NotOS Stage 1 >>>

'/bin/sh' -> '/nix/store/nynxwgjp72dl773qmgs6v7xvm79bvvbc-extra-utils-armv7l-unknown-linux-gnueabihf/bin/ash'
[    1.703390] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: disabled.

Closes #30

### Description Added additional instructions for clean shutdown during `poweroff/reboot` As referred from [void linux](https://github.com/void-linux/void-runit/blob/20220329/3), another linux distro that uses runit as its init system. Reboot log: ``` -bash-5.2# reboot -bash-5.2# - runit: leave stage: /etc/runit/2 - runit: enter stage: /etc/runit/3 Waiting for services to stop... ok: down: /etc/service/sshd: 0s, normally up, want up ok: down: /etc/service/getty: 1s, normally up ok: down: /etc/service/nix: 1s, normally up Sending TERM signal to processes... Sending KILL signal to processes... Unmounting filesystems, disabling swap... [ 28.133778] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: disabled. Remounting rootfs read-only... [ 28.159920] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: disabled. and down we go - runit: leave stage: /etc/runit/3 - runit: sending KILL signal to all processes... - runit: system reboot. [ 28.208198] reboot: Restarting system ``` ``` <<< NotOS Stage 1 >>> '/bin/sh' -> '/nix/store/nynxwgjp72dl773qmgs6v7xvm79bvvbc-extra-utils-armv7l-unknown-linux-gnueabihf/bin/ash' [ 1.703390] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: disabled. ``` Closes #30
Owner

Why is this in the same patch as so much other stuff? This should be split and another PR for not-os.

Why is this in the same patch as so much other stuff? This should be split and another PR for not-os.
fsagbuya force-pushed recovery from d610e1c093 to e4dcc0e84a 2024-02-22 09:59:05 +08:00 Compare
sb10q merged commit e4dcc0e84a into master 2024-02-22 09:59:48 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nix-servo#35
No description provided.