joycond
joycond copied to clipboard
Service daemon for OpenRC
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!
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"