Gentoo Archives: gentoo-user

From: karl@××××××××.se
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] shutdown: /run/initctl: No such file or directory ???
Date: Fri, 30 Mar 2018 20:27:39
Message-Id: 20180330202730.36525807DEC6@turkos.aspodata.se
In Reply to: [gentoo-user] shutdown: /run/initctl: No such file or directory ??? by tuxic@posteo.de
1 Meino:
2 > just a minute before I wanted to shutdown my Linux box...and...
3 > shutdown: /run/initctl: No such file or directory
4 ...
5
6 $ ls -l /run/initctl
7 prw------- 1 root root 0 Mar 16 21:50 /run/initctl|
8
9 I.e. it is a named pipe, which you can use to tell init things, like
10 to shutdown.
11
12 # man init | grep -A2 SIGUSR
13 SIGUSR1
14 On receipt of this signals, init closes and re-opens its control
15 fifo, /dev/initctl. Useful for bootscripts when /dev is remounted.
16
17 So, try "kill -SIGUSR1 1" to make init recreate that pipe.
18
19 NOTE:
20 If you use something else than sysv-init, the above might not apply.
21
22 Regards,
23 /Karl Hammar
24
25 -----------------------------------------------------------------------
26 Aspö Data
27 Lilla Aspö 148
28 S-742 94 Östhammar
29 Sweden
30 +46 173 140 57