Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] shutdown: /run/initctl: No such file or directory ???

863 views
Skip to first unread message

tu...@posteo.de

unread,
Mar 30, 2018, 4:00:05 PM3/30/18
to
Hi,

just a minute before I wanted to shutdown my Linux box...and...
shutdown: /run/initctl: No such file or directory

Today I did the following ubdates
Fri Mar 30 04:03:37 2018 <<< net-misc/dhcpcd-7.0.1
Fri Mar 30 04:03:41 2018 >>> net-misc/dhcpcd-7.0.2
Fri Mar 30 04:04:24 2018 <<< app-editors/nano-2.9.4
Fri Mar 30 04:04:32 2018 >>> app-editors/nano-2.9.5
Fri Mar 30 14:36:35 2018 >>> dev-python/pyyaml-3.12
Fri Mar 30 14:36:42 2018 <<< sys-apps/sysvinit-2.88-r9
Fri Mar 30 14:36:45 2018 >>> sys-apps/sysvinit-2.89
Fri Mar 30 14:36:56 2018 <<< sys-apps/portage-2.3.26
Fri Mar 30 14:37:01 2018 >>> sys-apps/portage-2.3.27
Fri Mar 30 14:37:17 2018 <<< app-portage/repoman-2.3.7
Fri Mar 30 14:37:23 2018 >>> app-portage/repoman-2.3.9
Fri Mar 30 14:37:32 2018 <<< media-radio/gpredict-2.2
Fri Mar 30 14:37:35 2018 >>> media-radio/gpredict-2.2.1

What may have killed /run/initctl ?

/run has currently this content:


zsh:1: no such file or directory: /sl
total 68
-rw------- 1 root root 0 Mar 30 03:56 agetty.reload
drwx------ 2 root root 40 Mar 30 03:55 alsasound
drwx--x--- 2 root apache 40 Mar 30 03:55 apache2
drwxr-xr-x 2 root root 40 Mar 30 03:55 apache_ssl_mutex
-rw-r--r-- 1 root root 6 Mar 30 16:40 atop.pid
-rw-r--r-- 1 root root 5 Mar 30 03:55 autofs.pid
---------- 1 root root 5 Mar 30 03:55 autofs-running
-rw-r--r-- 1 root root 5 Mar 30 03:55 cgred.pid
srw-rw---- 1 root root 0 Mar 30 03:55 cgred.socket
drwxr-xr-x 2 root root 80 Mar 30 03:55 ConsoleKit
drwx------ 2 root root 40 Mar 30 03:55 cryptsetup
drwxrwxr-x 2 root root 60 Mar 30 03:55 dbus
-rw-r--r-- 1 root root 5 Mar 30 03:55 dbus.pid
drwxr-xr-x 4 root root 80 Mar 30 21:48 dhcpcd
-rw-r--r-- 1 root root 5 Mar 30 03:55 dhcpcd.pid
srw-rw---- 1 root root 0 Mar 30 03:55 dhcpcd.sock
srw-rw-rw- 1 root root 0 Mar 30 03:55 dhcpcd.unpriv.sock
srwxrwxrwx 1 root root 0 Mar 30 03:55 fcron.fifo
-rw-r--r-- 1 root root 5 Mar 30 03:55 fcron.pid
---------- 1 root root 0 Mar 30 03:55 fcron.reboot
drwx------ 2 fetchmail nobody 40 Mar 30 03:55 fetchmail
-rw-r--r-- 1 root root 5 Mar 30 03:55 gpm.pid
drwxrwxr-x 3 root uucp 80 Mar 30 21:50 lock
drwxrwxr-x 2 root root 60 Mar 30 03:55 lvm
-rw-r--r-- 1 root root 5 Mar 30 03:55 lvmetad.pid
-rw-r--r-- 1 root root 5 Mar 30 03:55 metalog.pid
drwxr-xr-x 2 root root 40 Mar 30 03:55 mount
drwxrwxr-x 14 root root 360 Mar 30 03:56 openrc
drwxr-xr-x 4 root root 80 Mar 30 18:17 pm-utils
-rw------- 1 root root 52 Mar 30 03:55 slim.auth
-rw-r--r-- 1 root root 5 Mar 30 03:55 slim.pid
-rw------- 1 root root 5 Mar 30 03:55 smartd.pid
drwxr-xr-x 2 root root 40 Mar 30 03:55 smokeping
-rw-r--r-- 1 root root 5 Mar 30 03:55 spamd.pid
-rw-r--r-- 1 root root 5 Mar 30 03:56 sshd.pid
drwxrwxr-x 2 root root 60 Mar 30 03:55 tmpfiles.d
drwxr-xr-x 8 root root 180 Mar 30 18:12 udev
-rw-rw-r-- 1 root utmp 4224 Mar 30 03:56 utmp

The timestamps look very suspicious...


Any idea of what has happened to initctl?

Cheers
Meino

ka...@aspodata.se

unread,
Mar 30, 2018, 4:30:04 PM3/30/18
to
Meino:
> just a minute before I wanted to shutdown my Linux box...and...
> shutdown: /run/initctl: No such file or directory
...

$ ls -l /run/initctl
prw------- 1 root root 0 Mar 16 21:50 /run/initctl|

I.e. it is a named pipe, which you can use to tell init things, like
to shutdown.

# man init | grep -A2 SIGUSR
SIGUSR1
On receipt of this signals, init closes and re-opens its control
fifo, /dev/initctl. Useful for bootscripts when /dev is remounted.

So, try "kill -SIGUSR1 1" to make init recreate that pipe.

NOTE:
If you use something else than sysv-init, the above might not apply.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57

Mike Gilbert

unread,
Mar 30, 2018, 4:40:02 PM3/30/18
to
On Fri, Mar 30, 2018 at 3:56 PM, <tu...@posteo.de> wrote:
> Hi,
>
> just a minute before I wanted to shutdown my Linux box...and...
> shutdown: /run/initctl: No such file or directory
>

See bug 651990. https://bugs.gentoo.org/651990

Either upgrade to sysvinit-2.89-r1, or run the following command
before rebooting or changing runlevels.

ln -s /dev/initctl /run/initctl

Tom H

unread,
Mar 30, 2018, 5:40:03 PM3/30/18
to
On Fri, Mar 30, 2018 at 3:56 PM, <tu...@posteo.de> wrote:
>
> just a minute before I wanted to shutdown my Linux box...and...
> shutdown: /run/initctl: No such file or directory

Isn't "/run/initctl" a Debianism?!

Tom H

unread,
Mar 30, 2018, 6:10:03 PM3/30/18
to
2.89?! A new version after so many years!

Looking at the upstream changelog:

Added Robert Millan's Debian patch to use /run/initctl as the named pipe
for communicating. This works around a limitation on the kFreeBSD branch
which prevents us from using /dev/initctl for pipes.

tu...@posteo.de

unread,
Mar 30, 2018, 10:50:02 PM3/30/18
to
Hi,

thanks for all the help.

An update this morning has fixed the problem...but good to know
the backgrounds and workarounds, if anything like that happens
again... ;)

Cheers!
Meino
0 new messages