-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenRC support #102
Comments
It's certainly possible, but I don't have any experience writing |
OpenRC does not support user services... I think xow was converted to running with user privileges only recently? So it would need to become an xdg autostart item - which is not compatible with systemd-user service... You can either use one or the other. |
Nah, it's still a system-service right now. I've realized that user-services have too many drawbacks to be a good alternative. |
Then it should be very easy to create an OpenRC service, the format is pretty simple. But xow probably needs a real log file writer so logs to not vanish in /dev/null. I banned OpenRC from my system when I migrated to systemd (by masking /etc/init.d from package installation in Gentoo), so I can't really help here. |
@AlwaysLivid Are you still interested in creating an |
In all honesty, I'm still trying to get the hang of Gentoo and I barely know anything about OpenRC, as well as a bunch of side-projects on my plate. I'll try to look into it. |
Just not particularly sure if I'm able to make the time for it. Could I reach out to you on any other platforms? @medusalix |
Gentoo is in the process of making systemd a first-class citizen (but not a replacement). Portage currently unifies session manager support useflags from elogind and systemd and will make either of both a requirement. After this, switching from or to systemd should be mostly plug & play. So you may want to wait and not even bother with learning OpenRC, and just stick with systemd. You could also enable systemd just now by switching to a systemd profile, but it may require you to tweak one or another useflag and maybe uninstall or mask a package currently. I'm using systemd in Gentoo since over 5 years without any major problems, and without any problems at all since at least 2 years. |
@AlwaysLivid You can join the Discord server if you want. |
#!/sbin/openrc-run
command=/bin/xow
pidfile=/var/run/xow.pid
command_background=true
command_user="nobody:nobody"
name="xow"
depend() {
keyword -lxc
} Works for me. Ideally, you want a dedicated user to run xow under instead of |
Support is optional, therefore init/conf files will be prepared for packagers while building but not installed. Closes medusalix#102
Delivered in #114. Basically it works, customizing user, environment and logging supported too.
The only issue I found that after suspend2ram
and service reported as |
Support is optional, therefore init/conf files will be prepared for packagers while building but not installed. Closes medusalix#102
Support is optional, therefore init/conf files will be prepared for packagers while building but not installed. Closes medusalix#102
Managed to automate restarts by using |
Support is optional, therefore init/conf files will be prepared for packagers while building but not installed. Closes medusalix#102 Signed-off-by: Alexander Kapshuna <[email protected]>
Hey, I was wondering whether getting
xow
to work with the OpenRC service manager would be possible.Thanks!
The text was updated successfully, but these errors were encountered: