Skip to content
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

Create basic OpenRC service #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create basic OpenRC service #114

wants to merge 1 commit into from

Conversation

kapsh
Copy link

@kapsh kapsh commented Aug 11, 2020

Support is optional, therefore init/conf files will be prepared
for packagers while building but not installed.

Closes #102

@kapsh kapsh mentioned this pull request Aug 11, 2020
@kapsh
Copy link
Author

kapsh commented Aug 11, 2020

This will create service and configuration files under install/openrc, packager can install them after build is finished as /etc/conf.d/xow and /etc/init.d/xow respectively. Flexible enough and shouldn't break existing builds this way.

@kapsh kapsh force-pushed the openrc branch 2 times, most recently from f72e222 to 69e9337 Compare August 12, 2020 14:55
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]>
@kakra
Copy link
Contributor

kakra commented Jan 6, 2021

Is it possible to load openrc services as part of udev plug&play? There's a pull requests which converts the systemd service to be triggered by device plug in udev. This seems to solve a compatibility issue / race condition, and I wonder if openrc should do the same.

@kapsh
Copy link
Author

kapsh commented Jan 6, 2021

@kakra should be as simple as RUN+="rc-service xow start/stop in add/remove actions of udev rule.

Looking at #116, relevant parts could be added but commented out, this way users will have choice between plug&pray (suggest uncommenting in docs) and always enabled service (rc-update add xow, and this implementation will restart xow if it exits without dongle or when another error has happened).

@mrturcot
Copy link

@kakra should be as simple as RUN+="rc-service xow start/stop in add/remove actions of udev rule.

Looking at #116, relevant parts could be added but commented out, this way users will have choice between plug&pray (suggest uncommenting in docs) and always enabled service (rc-update add xow, and this implementation will restart xow if it exits without dongle or when another error has happened).

Sorry if this a newb question but how am I supposed to get xow working in Gentoo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenRC support
3 participants