Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can't shutdown or reboot (/run/initctl problem?)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LukeMe
n00b
n00b


Joined: 31 Jul 2022
Posts: 22

PostPosted: Mon Aug 15, 2022 2:55 pm    Post subject: [SOLVED] Can't shutdown or reboot (/run/initctl problem?) Reply with quote

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! :D


Last edited by LukeMe on Mon Aug 15, 2022 3:21 pm; edited 2 times in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Mon Aug 15, 2022 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
LukeMe
n00b
n00b


Joined: 31 Jul 2022
Posts: 22

PostPosted: Mon Aug 15, 2022 3:19 pm    Post subject: Reply with quote

well, that was easy! Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum