Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 635326

Summary: sys-apps/openrc symlinks for reboot, shutdon, poweroff
Product: Gentoo Hosted Projects Reporter: Joakim Tjernlund <joakim.tjernlund>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joakim Tjernlund 2017-10-24 16:53:25 UTC
I am testing openrc-init and I miss my reboot/poweroff/shutdown cmds.
Can openrc-shutdown accept symlinks like:
ls -l reboot
lrwxrwxrwx 1 root root 15 Oct 24 18:40 reboot -> openrc-shutdown

and emulate the old reboot/poweroff/shutdown cmds?
Comment 1 William Hubbs gentoo-dev 2017-10-24 20:29:40 UTC
There are scripts upstream which can act as wrappers that will emulate
poweroff, shutdown and reboot.

I haven't enabled this in Gentoo because it would require you to remove
sysvinit from your system, and I'm not sure we want to go there yet.
Comment 2 Joakim Tjernlund 2017-10-24 21:01:23 UTC
(In reply to William Hubbs from comment #1)
> There are scripts upstream which can act as wrappers that will emulate
> poweroff, shutdown and reboot.
> 
> I haven't enabled this in Gentoo because it would require you to remove
> sysvinit from your system, and I'm not sure we want to go there yet.

Not yet, but one could hide these scripts/symlinks behind a USE flag and
there force rm of sysvinit. That would make me happy anyway as I find
it hard to even think of replacing sysvinit without this.

What is missing in openrc to replace sysvinit(except bugs)?
Comment 3 Joakim Tjernlund 2017-10-24 23:23:27 UTC
Any way one can supress the "Starting ..." msg?
The init.d start msg for agetty clobbers the agetty login prompt
Comment 4 William Hubbs gentoo-dev 2017-10-24 23:30:36 UTC
The Agetty script is quiet in OpenRC-0.33 and newer.
Comment 5 Joakim Tjernlund 2017-11-09 14:34:41 UTC
(In reply to Joakim Tjernlund from comment #2)
> (In reply to William Hubbs from comment #1)
> > There are scripts upstream which can act as wrappers that will emulate
> > poweroff, shutdown and reboot.
> > 
> > I haven't enabled this in Gentoo because it would require you to remove
> > sysvinit from your system, and I'm not sure we want to go there yet.
> 
> Not yet, but one could hide these scripts/symlinks behind a USE flag and
> there force rm of sysvinit. That would make me happy anyway as I find
> it hard to even think of replacing sysvinit without this.

Ping?
Comment 6 William Hubbs gentoo-dev 2018-11-02 21:52:06 UTC
We aren't quite there yet. I need to add selinux support to openrc-init
before I say it is fully compatible.