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

2018-03-30 Thread tuxic
On 03/30 06:02, Tom H wrote:
> On Fri, Mar 30, 2018 at 4:36 PM, Mike Gilbert  wrote:
> > On Fri, Mar 30, 2018 at 3:56 PM,   wrote:
> >>
> >> 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
> 
> 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.
> 


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





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

2018-03-30 Thread Tom H
On Fri, Mar 30, 2018 at 4:36 PM, Mike Gilbert  wrote:
> On Fri, Mar 30, 2018 at 3:56 PM,   wrote:
>>
>> 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

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.



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

2018-03-30 Thread Tom H
On Fri, Mar 30, 2018 at 3:56 PM,   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?!



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

2018-03-30 Thread Mike Gilbert
On Fri, Mar 30, 2018 at 3:56 PM,   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



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

2018-03-30 Thread karl
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