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

Bug 742698

Summary: gui-libs/greetd: missing .init file for openrc
Product: Gentoo Linux Reporter: Jonas Toth <gentoo>
Component: Current packagesAssignee: Aisha Tammy <gentoo>
Status: RESOLVED INVALID    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: EBUILD, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/17557
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: New .init-file for greetd
Updated ebuild

Description Jonas Toth 2020-09-15 18:17:38 UTC
Created attachment 660429 [details]
New .init-file for greetd

Hi,

gui-libs/greetd right now only install a systemd unit-file, but not an openrc one.

I wrote a simple file and patched the ebuild in my local overlay, and that works quiet well.
Comment 1 Jonas Toth 2020-09-15 18:18:26 UTC
Created attachment 660432 [details]
Updated ebuild

I use this ebuild for greetd with openrc support
Comment 2 Brian Evans (RETIRED) gentoo-dev 2020-09-15 18:36:38 UTC
(In reply to Jonas Toth from comment #0)
> Created attachment 660429 [details]
> New .init-file for greetd
> 
> Hi,
> 
> gui-libs/greetd right now only install a systemd unit-file, but not an
> openrc one.
> 
> I wrote a simple file and patched the ebuild in my local overlay, and that
> works quiet well.

You can drop the start() function entirely if command_background="yes" was added.
Comment 3 Jonas Toth 2020-09-15 18:40:21 UTC
I updated the PR accordingly. Thanks for the tip.
Comment 4 Aisha Tammy 2020-09-15 20:31:18 UTC
As mentioned in the PR, this is not the way to handle a new display manager.

Work is currently being done in [1] to make greetd a display manager working at openrc level to make sure that it will not conflict with holding up a tty

[1] https://github.com/gentoo/gentoo/pull/16554