xow icon indicating copy to clipboard operation
xow copied to clipboard

Create basic OpenRC service

Open kapsh opened this issue 5 years ago • 4 comments

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

Closes #102

kapsh avatar Aug 11 '20 11:08 kapsh

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 avatar Aug 11 '20 11:08 kapsh

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.

kakra avatar Jan 06 '21 15:01 kakra

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

Looking at https://github.com/medusalix/xow/pull/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).

kapsh avatar Jan 06 '21 15:01 kapsh

@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?

mrturcot avatar Nov 16 '21 04:11 mrturcot