View previous topic :: View next topic |
Author |
Message |
LukeMe n00b
Joined: 31 Jul 2022 Posts: 22
|
Posted: Mon Aug 15, 2022 2:55 pm Post subject: [SOLVED] Can't shutdown or reboot (/run/initctl problem?) |
|
|
Hi there, i'm encountering issues shutting down/rebooting gentoo. I tried following what GDH-gentoo said in the second to last message here without any luck.
Here is my situation:
Code: |
~ # halt
WARNING: could not determine runlevel - doing soft halt
(it's better to use shutdown instead of halt from the command line)
Broadcast message from root@T420s (pts/0) (Mon Aug 15 16:40:05 2022):
The system is going down for system halt NOW!
shutdown: /run/initctl: No such file or directory
init: /run/initctl: No such file or directory
[code]
[/code]
~ # reboot
WARNING: could not determine runlevel - doing soft reboot
(it's better to use shutdown instead of reboot from the command line)
Broadcast message from root@T420s (pts/0) (Mon Aug 15 16:40:09 2022):
The system is going down for reboot NOW!
shutdown: /run/initctl: No such file or directory
init: /run/initctl: No such file or directory
|
using openrc-shutdown as shown below works as expected
Code: |
openrc-shutdown --reboot now
openrc-shutdown --poweroff now
|
The processes that are running after boot are:
Code: |
~ # rc-status sysinit boot
Runlevel: sysinit
devfs [ stopped ]
sysfs [ started ]
cgroups [ stopped ]
udev [ stopped ]
kmod-static-nodes [ stopped ]
systemd-tmpfiles-setup-dev [ stopped ]
dmesg [ stopped ]
udev-trigger [ stopped ]
Runlevel: boot
hwclock [ started ]
hostname [ started ]
modules [ started ]
sysctl [ started ]
dmcrypt [ started ]
fsck [ started ]
root [ started ]
mtab [ started ]
swap [ started ]
localmount [ started ]
bootmisc [ started ]
termencoding [ started ]
save-termencoding [ started ]
systemd-tmpfiles-setup [ started ]
urandom [ started ]
keymaps [ started ]
save-keymaps [ started ]
procfs [ started ]
binfmt [ started ]
loopback [ started ]
|
Thanks in advance for any help!
Last edited by LukeMe on Mon Aug 15, 2022 3:21 pm; edited 2 times in total |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1660
|
Posted: Mon Aug 15, 2022 3:05 pm Post subject: |
|
|
Given your last post on a genkernel thread included:
Code: | GRUB_CMDLINE_LINUX_DEFAULT="init=/sbin/openrc-init" |
This is to be expected since you are using openrc-init as init but then trying to use sysvinit tools to shutdown.
If you want to use openrc-init instead of sysvinit's /sbin/init, then shutdown should be via openrc-shutdown.
There is the sysv-utils USE on sys-apps/openrc to map reboot and shutdown and the like to openrc-shutdown as well. |
|
Back to top |
|
|
LukeMe n00b
Joined: 31 Jul 2022 Posts: 22
|
Posted: Mon Aug 15, 2022 3:19 pm Post subject: |
|
|
well, that was easy! Thanks! |
|
Back to top |
|
|
|