summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/irexec
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-01-29 18:53:41 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-01-29 18:53:41 (GMT)
commit328b8e929de3d3d53044cc17f107752a4cb2984c (patch)
tree775de92eddbfed9c724b60cc50fb35bc8006b53a /abs/core/runit-scripts/runitscripts/services/irexec
parentbaa62226f566018baefd6b847ab6d63939e38a5b (diff)
downloadlinhes_pkgbuild-328b8e929de3d3d53044cc17f107752a4cb2984c.zip
linhes_pkgbuild-328b8e929de3d3d53044cc17f107752a4cb2984c.tar.gz
linhes_pkgbuild-328b8e929de3d3d53044cc17f107752a4cb2984c.tar.bz2
runit-scripts: add irexec service for runit to manage
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/irexec')
-rw-r--r--abs/core/runit-scripts/runitscripts/services/irexec/run12
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/irexec/run b/abs/core/runit-scripts/runitscripts/services/irexec/run
new file mode 100644
index 0000000..55653a3
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/irexec/run
@@ -0,0 +1,12 @@
+#!/bin/sh
+exec 2>&1
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+if [[ -z $(pidof lircd) ]]; then
+ stat_runit "No lircd process, can't start irexec"
+else
+ stat_runit "Starting irexec"
+ exec /usr/bin/irexec /etc/lircrc
+fi