What I want is simple: I want that after my user login through agetty, my display manager (LightDM) or whatever login way, a specific service of OpenRC be run. Is there a way to setup that?.
My personal motivation behind that: I have a emacs daemon running as OpenRC service for my specific user and I need that this service starts only after a dbus session is created. An way to accomplish this is running emacs daemon after dbus-launch (related history) runs my main session (currently XFCE session), which for instance happens after a login through the LightDM display manager .
What I do as workaround is: restart emacs after login with my user to initialize correctly dbus integration with emacs. But this is just painful. It must have a better way to do that.
~/.profile
or~/.xinitrc
?~/.profile
or~/.xinitrc
without prompting for auth (sudo)? Because if I start "manually" the OpenRC services, I need to run as root as usual (su or sudo).