joycond icon indicating copy to clipboard operation
joycond copied to clipboard

Service daemon for OpenRC

Open AboveGojira opened this issue 5 years ago • 1 comments

Hi. I needed a daemon for OpenRC since the sudo make install command creates only a systemd daemon, so I created one. A file named joycond has to be placed in /etc/init.d/ folder. Its content has to be:

#!/sbin/openrc-run
depend() {
need net
}
command="/usr/bin/joycond"
pidfile="/run/${RC_SVCNAME}/pid"

Then chmod+x and sudo rc-service joycond start.

I'm not a programmer, just a regular guy that wants to help. If you want to implement this solution in your software feel free to do so. Bye!

AboveGojira avatar Apr 13 '20 08:04 AboveGojira

Here is a one that handles joycond not backgrounding itself. Does joycond really need a working network interface or it happy with 0.0.0.0?

#!/sbin/openrc-run
depend() {
	need net
}
command="/usr/bin/joycond"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"

infirit avatar Sep 04 '21 14:09 infirit